Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Sulis scripting helpers

https://github.com/Grokmoo/sulis

Shell oneliners to get usefull info about current engine scripting abilities.

Show currently implemented AI hooks:

grep -oP 'ai::FuncKind::\K\w+' sulis_state/src/entity_state.rs

Get Entity/EntitySet methods:

Look carefully which methods belong to Entity and which to EntitySet!

grep -oP 'impl UserData for \K.*|add_method\(\K.*' sulis_state/src/script/script_entity.rs

Get Game methods:

grep -oP 'impl UserData for \K.*|add_method\(\K.*' sulis_state/src/script/mod.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment