add entity:get_skeleton

This commit is contained in:
MihailRis
2024-07-13 03:13:28 +03:00
parent ffb0ab2f05
commit 035b51ff85
3 changed files with 14 additions and 1 deletions
+1
View File
@@ -53,6 +53,7 @@ end
local Entity = {__index={
despawn=function(self) return entities.despawn(self.eid) end,
get_skeleton=function(self) return entities.get_skeleton(self.eid) end,
set_skeleton=function(self, s) return entities.set_skeleton(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,