mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add entity events: on_attacked, on_used
This commit is contained in:
parent
a36ffaacd9
commit
50050dbe40
6 changed files with 44 additions and 0 deletions
|
|
@ -95,6 +95,8 @@ namespace scripting {
|
|||
void on_sensor_exit(const Entity& entity, size_t index, entityid_t oid);
|
||||
void on_aim_on(const Entity& entity, Player* player);
|
||||
void on_aim_off(const Entity& entity, Player* player);
|
||||
void on_attacked(const Entity& entity, Player* player, entityid_t attacker);
|
||||
void on_entity_used(const Entity& entity, Player* player);
|
||||
|
||||
/// @brief Called on UI view show
|
||||
void on_ui_open(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue