mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add component ARGS variable
This commit is contained in:
parent
da6b014d62
commit
1b41a75cf4
6 changed files with 24 additions and 7 deletions
|
|
@ -76,7 +76,12 @@ namespace scripting {
|
|||
/// @return true if prevents default action
|
||||
bool on_item_break_block(Player* player, const ItemDef* item, int x, int y, int z);
|
||||
|
||||
scriptenv on_entity_spawn(const EntityDef& def, entityid_t eid, entity_funcs_set&);
|
||||
scriptenv on_entity_spawn(
|
||||
const EntityDef& def,
|
||||
entityid_t eid,
|
||||
entity_funcs_set&,
|
||||
dynamic::Value args
|
||||
);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue