extensions/urho3d: Scene:GetNode()

master
Perttu Ahola 2014-10-14 12:23:06 +03:00
parent a32bf7ccf3
commit 6d26d3144d
1 changed files with 7 additions and 0 deletions

View File

@ -458,6 +458,13 @@ function M.define(dst, util)
return util.wrap_instance("Scene", Scene:new())
end,
},
instance = {
GetNode = util.wrap_function({"Scene", "number"},
function(self, id)
return util.wrap_instance("Node", self:GetNode(id))
end
),
},
})
util.wc("ResourceCache", {