mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add modeltree:get_model(index)
This commit is contained in:
parent
28ceffde9e
commit
3fe66e134d
8 changed files with 54 additions and 21 deletions
|
|
@ -24,6 +24,7 @@ function new_Rigidbody(eid)
|
|||
end
|
||||
|
||||
local Modeltree = {__index={
|
||||
get_model=function(self) return __modeltree.get_model(self.eid) end,
|
||||
}}
|
||||
|
||||
function new_Modeltree(eid)
|
||||
|
|
@ -33,7 +34,7 @@ end
|
|||
-- Entity class
|
||||
|
||||
local Entity = {__index={
|
||||
despawn=function(self) return entity.despawn(self.eid) end,
|
||||
despawn=function(self) return entities.despawn(self.eid) end,
|
||||
}}
|
||||
|
||||
local entities = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue