update entity methods set

This commit is contained in:
MihailRis
2024-07-18 12:08:43 +03:00
parent d285ffb2f7
commit 3549c1f326
4 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ local Entity = {__index={
get_component=function(self, name) return self.components[name] end,
has_component=function(self, name) return self.components[name] ~= nil end,
get_uid=function(self) return self.eid end,
get_def=function(self) return entities.get_def(self.eid) end,
def_index=function(self) return entities.get_def(self.eid) end,
def_name=function(self) return entities.def_name(entities.get_def(self.eid)) end,
}}
local entities = {}