Add World:query

This method allows you to query the World in order to find a set of Entities that matches a specific Filter.
This commit is contained in:
Pablo Ariel Mayobre 2023-02-14 18:14:24 -03:00 committed by Pablo Mayobre
parent 238aaeca12
commit 772dd03b78
No known key found for this signature in database
GPG key ID: 13A2F589D013E0E7
3 changed files with 53 additions and 25 deletions

View file

@ -53,7 +53,7 @@ function System.new(definition)
Utils.error(2, "invalid name for filter (string key expected, got %s)", type(name))
end
Filter.validate(name, def)
Filter.validate(0, name, def)
end
local systemClass = setmetatable({