add entity on_save event and SAVED_DATA variable

This commit is contained in:
MihailRis
2024-07-05 18:35:46 +03:00
parent e301dbe164
commit 08cc78289d
6 changed files with 36 additions and 4 deletions
+1
View File
@@ -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,