mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06:00
Change names of tiny.requireOne and tiny.rejectOne to tiny.requireAny and tiny.rejectAny.
This commit is contained in:
+2
-2
@@ -56,10 +56,10 @@ describe('tiny-ecs:', function()
|
||||
local ftap = tiny.requireAll("spinalTap")
|
||||
local fvel = tiny.requireAll("vel")
|
||||
local fxform = tiny.requireAll("xform")
|
||||
local fall = tiny.requireOne("spinalTap", "onlyTen", "littleMan")
|
||||
local fall = tiny.requireAny("spinalTap", "onlyTen", "littleMan")
|
||||
|
||||
-- Only select Entities without "spinalTap"
|
||||
local frtap = tiny.rejectOne("spinalTap")
|
||||
local frtap = tiny.rejectAny("spinalTap")
|
||||
|
||||
-- Select Entities without all three: "spinalTap", "onlyTen", and
|
||||
-- "littleMan"
|
||||
|
||||
Reference in New Issue
Block a user