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 2021-03-15 14:51:34 -03:00
parent f78811337a
commit 3911e212a4
No known key found for this signature in database
GPG key ID: 5ACD9E6858BEB0A9
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({