From dc70f50b5901732f928c439060dcbbcc6a5dfeb7 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 31 Mar 2012 13:50:25 +0300 Subject: initial_properties field in entity definition --- doc/lua_api.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/lua_api.txt') 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 = , + 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, } -- cgit v1.2.3