Currently, search returns a list of game entities depending on the location specified.
Extend Search.getEntitiesInLocation to require a filter function as well, and provide a Ref constructor through object Ref that supports a filter function. If no filter function is given, pass an anonymous function that simply accepts everything.
Currently, search returns a list of game entities depending on the location specified.
Extend Search.getEntitiesInLocation to require a filter function as well, and provide a Ref constructor through object Ref that supports a filter function. If no filter function is given, pass an anonymous function that simply accepts everything.