diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 13:50:25 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 13:50:25 +0300 |
commit | dc70f50b5901732f928c439060dcbbcc6a5dfeb7 (patch) | |
tree | f1f69273b321476124023832b70ef9bd15b3d5ee /doc | |
parent | e297c739139ad0116ebdcda7a8dc5884d89f5a96 (diff) | |
download | minetest-dc70f50b5901732f928c439060dcbbcc6a5dfeb7.tar.gz minetest-dc70f50b5901732f928c439060dcbbcc6a5dfeb7.tar.bz2 minetest-dc70f50b5901732f928c439060dcbbcc6a5dfeb7.zip |
initial_properties field in entity definition
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index db8ae25b1..b068a8a01 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -792,8 +792,10 @@ Object Properties Entity definition (register_entity) { - Everything from object properties, - -- entity specific -- + (Deprecated: Everything in object properties is read directly from here) + + initial_properties = <initial object properties>, + on_activate = function(self, staticdata), on_step = function(self, dtime), on_punch = function(self, hitter), @@ -801,6 +803,7 @@ Entity definition (register_entity) get_staticdata = function(self), ^ Called sometimes; the string returned is passed to on_activate when the entity is re-activated from static state + # Also you can define arbitrary member variables here myvariable = whatever, } |