add player.get/set_entity
This commit is contained in:
@@ -47,6 +47,8 @@ local Entity = {__index={
|
||||
despawn=function(self) return entities.despawn(self.eid) end,
|
||||
set_rig=function(self, s) return entities.set_rig(self.eid, s) end,
|
||||
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,
|
||||
}}
|
||||
|
||||
local entities = {}
|
||||
|
||||
Reference in New Issue
Block a user