-
Notifications
You must be signed in to change notification settings - Fork 0
scripts_system::script
Paweł Waligóra edited this page Apr 16, 2024
·
17 revisions
Full signature: class
scripts_system::script
Class is meant to be abstract. Should be overridden. Place your custom classes that inherit from engine::script
in namespace game
- methods
-
scripts_system::script::init()
- called during opengl init, use for memory allocation. -
scripts_system::script::start()
- called once just before game loop, use for setup -
scripts_system::script::update()
- called ever iteration of game loop -
scripts_system::script::free()
- called on opengl free, use for freeing memory allocated ongame::script::init()
-
All methods are called by scripts_system::call_events()
, after object has been registered with: scripts_system::subscribe(&object)
. Methods can be registered individually with: scripts_system::subscribe(std::bind(&game::your_script::method, &object)
.
- engine
- scripts_system
- scene_loader
- time_system
-
input_system
- input_system::key_held
- input_system::key_events
- input_system::subscribe() (deprecated)
- input_system::axis_state()
- input_system::key_bind
- input_system::axis
- input_system::double_axis
- input_system::triple_axis
- input_system::axis2
- input_system::double_axis2
- input_system::triple_axis2
- input_system::axis-choice
- renderer
- physics
- ui_system
- game