Skip to content

Instantly share code, notes, and snippets.

@ernierasta
Last active August 27, 2018 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ernierasta/b5f71981c4e42b646a0b12251837d2ef to your computer and use it in GitHub Desktop.
Save ernierasta/b5f71981c4e42b646a0b12251837d2ef to your computer and use it in GitHub Desktop.

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