mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
refactor entities events
This commit is contained in:
parent
0df5d34e04
commit
54902d7f49
4 changed files with 49 additions and 66 deletions
|
|
@ -85,10 +85,10 @@ namespace scripting {
|
|||
dynamic::Value args,
|
||||
dynamic::Map_sptr saved
|
||||
);
|
||||
bool on_entity_despawn(const EntityDef& def, const Entity& entity);
|
||||
bool on_entity_grounded(const Entity& entity, float force);
|
||||
bool on_entity_fall(const Entity& entity);
|
||||
bool on_entity_save(const Entity& entity);
|
||||
void on_entity_despawn(const Entity& entity);
|
||||
void on_entity_grounded(const Entity& entity, float force);
|
||||
void on_entity_fall(const Entity& entity);
|
||||
void on_entity_save(const Entity& entity);
|
||||
void on_entities_update();
|
||||
void on_entities_render();
|
||||
void on_sensor_enter(const Entity& entity, size_t index, entityid_t oid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue