mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add player.get/set_entity
This commit is contained in:
parent
9d98c40528
commit
f4653878a2
4 changed files with 34 additions and 6 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue