EntityFinder( function )

constructor

Create a new EntityFinder with a single condition function.

Arguments

Name Type Description
function Function Condition function to use

Returns

Type Description
EntityFinder The new EntityFinder

Notes

The condition function should be free standing, take an Entity as its only argument and return a boolean - true if the Entity passed the test and false if it failed.