Migrate to modern plugins: fix errors in util/mt-ide-helper & add changes that fixes most errors in code. LG-1978

This commit is contained in:
alek13
2025-09-16 19:05:54 +03:00
parent f8c9f7d83b
commit 0ca47db2ea
26 changed files with 301 additions and 160 deletions

View File

@@ -1,10 +1,16 @@
--- @diagnostic disable: missing-return
--- Used by `core.register_entity`.
--- The entity definition table becomes a metatable of a newly created per-entity luaentity table,
--- meaning its fields (e.g. initial_properties) will be shared between all instances of an entity.
--- @class EntityDefinition
local EntityDefinition = {
--- A table of object properties, see the `Object properties` section.
--- The properties in this table are applied to the object
--- once when it is spawned.
--- @type ObjectProperties
initial_properties = {},
--- @type ObjectProperties?
initial_properties = nil,
--- Called when the object is instantiated.