level

index~ Namespace

level

Description:
  • Helper functions and variables holding existing level info.
Source:

Members

(static) objects :Array.<Object>

Description:
  • Array of all objects in the level.
Source:
Array of all objects in the level.
Type:
  • Array.<Object>

(static) raw_levelstring :string

Description:
  • Raw level string of the current level.
Source:
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>