level
Members
(static) objects :Array.<Object>
Array of all objects in the level.
Type:
- Array.<Object>
(static) raw_levelstring :string
Raw level string of the current level.
Type:
- string
Methods
(static) get_objects(prop, pattern) → {Array.<Object>}
- Description:
- Returns an array of all the objects in the level with a property whose value matches the pattern.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
prop |
string | number | The property to check in each object. |
pattern |
function | The function to test the property value. |
Returns:
An array of objects that match the given property and pattern.
- Type
- Array.<Object>