Lua_api.txt: Clarify entity 'initial_properties' and related deprecation (#7596)

master
Paramat 2018-07-29 22:07:55 +01:00 committed by GitHub
parent 0e1915cf47
commit bf45644041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -5280,10 +5280,15 @@ Entity definition
Used by `minetest.register_entity`. Used by `minetest.register_entity`.
{ {
-- Deprecated: Everything in object properties is read directly from here initial_properties = {
visual = "mesh",
initial_properties = --[[<initial object properties>]], mesh = "boats_boat.obj",
...,
},
-- ^ A table of object properties, see the `Object properties` section.
-- ^ Object properties being read directly from the entity definition
-- table is deprecated. Define object properties in this
-- `initial_properties` table instead.
on_activate = function(self, staticdata, dtime_s), on_activate = function(self, staticdata, dtime_s),
on_step = function(self, dtime), on_step = function(self, dtime),
on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, dir), on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, dir),