ArraySet
Class: Phaser.ArraySet
Constructor
new ArraySet(list)
ArraySet is a Set data structure (items must be unique within the set) that also maintains order.
This allows specific items to be easily added or removed from the Set.
Item equality (and uniqueness) is determined by the behavior of Array.indexOf
.
This used primarily by the Input subsystem.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
list | Array.<any> | <optional> | (new array) | The backing |