mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add entity on_save event and SAVED_DATA variable
This commit is contained in:
parent
e301dbe164
commit
08cc78289d
6 changed files with 36 additions and 4 deletions
|
|
@ -76,6 +76,7 @@ namespace scripting {
|
|||
/// @return true if prevents default action
|
||||
bool on_item_break_block(Player* player, const ItemDef* item, int x, int y, int z);
|
||||
|
||||
dynamic::Value get_component_value(const scriptenv& env, const std::string& name);
|
||||
void on_entity_spawn(
|
||||
const EntityDef& def,
|
||||
entityid_t eid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue