mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update entities library semantics
This commit is contained in:
parent
d1696eea12
commit
d285ffb2f7
5 changed files with 55 additions and 9 deletions
|
|
@ -62,7 +62,7 @@ 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_name=function(self) return entities.name(self.eid) end,
|
||||
get_def=function(self) return entities.get_def(self.eid) end,
|
||||
}}
|
||||
|
||||
local entities = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue