Allows events to create a new object on a scene.
Do the work of creating a new object
Filter in-place the specified array to remove objects for which
pick
property is set to false.
Return the number of instances in the specified lists of objects.
Return the number of instances of the specified objects living on the scene.
Filter objects to keep only the one that fullfil the predicate
Objects that do not fullfil the predicate are removed from objects lists.
The function applied to each object: must return true if the object fulfill the predicate.
The lists of objects to trim
If set to true, the result of the predicate is negated.
Argument passed to the predicate (along with the object). Useful for avoiding relying on temporary closures.
true if at least one object fulfill the predicate.
Keep only the specified object in the lists of picked objects.
The lists of objects to trim
The object to keep in the lists
Do a test on two tables of objects so as to pick only the pair of objects for which the test is true.
Note that the predicate method is not called strictly for each pair: When considering a pair of objects, if these objects have already been marked as picked, the predicate method won't be called again.
Cost (Worst case, predicate being always false): Cost(Setting property 'picked' of NbObjList1+NbObjList2 objects to false)
Cost (Best case, predicate being always true): Cost(Setting property 'picked' of NbObjList1+NbObjList2 objects to false)
The predicate function is called with the two objects to compare, and an optional argument extraArg
The first lists of objects
The second lists of objects
If inverted
== true, only the objects of the first table are filtered.
(optional) This argument should be used to avoid declaring the predicate as a closure that would be created and destroyed at each call to twoListsTest (potentially multiple time per frame).
Generated using TypeDoc
Allows events to create a new object on a scene.