lyra-engine/lyra-scripting/scripts/lua/ecs.lua

13 lines
309 B
Lua

---Create a Resource Query
---@param resource table|userdata
---@return ResQuery
function Res(resource)
return ResQuery.new(resource)
end
---Create a `ChangedQuery` of a resource or component.
---@param val table|userdata
---@return ChangedQuery
function Changed(val)
return ChangedQuery.new(val)
end