flatworld.MapDataManipulator Class
Class to get a consistent standard for the engine to be able to filter objects, when etrieving or sorting them. This is used when some method uses filters.
You must provide an object that defines how the given objects should be filtered, when constructing. The module will filter with every rule and object given and everything that doesn't pass one of the given filters, will be dropped out.
Given filters look something like this: { type: 'filter', object: 'layer', property: 'selectable', // THIS can also be an array, like: ['data', 'a'] => data.a value: true, } For more information, please check the mapDataManipulatorSpec.js (test) for now.
Constructor
Item Index
Methods
Methods
_getObject
()
type
private
This is the actual method that runs through the rules and arranges the data
Returns:
[description]
_runRule
-
[varname] [description]
This is the actual method that runs through the rules and arranges the data
Parameters:
-
[varname] [description]
Array optional