EntityFinder( finders )
constructor
Create a new EntityFinder that uses multiple condition objects. An Entity must pass all the conditions before being accepted.
Arguments
Name | Type | Description |
---|---|---|
finders | Table of Object | Table of finders to use as conditions |
Returns
Type | Description |
---|---|
EntityFinder | The new EntityFinder |
Notes
The objects passed in the table as the finder argument must have a function name evaluate. This function should take an Entity as its only argument and return a boolean - true if the Entity passed the test and false if it failed.