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.
Annotations
@RawJSType()@native()@JSGlobal("Phaser.ArraySet")
See also
http://phaser.io/docs/2.6.2/Phaser.ArraySet.html
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
ArraySet
Object
Any
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newArraySet(list: Array[T] = js.native)
list
The backing array: if specified the items in the list must be unique,
per Array.indexOf, and the ownership of the array should be relinquished to the ArraySet.
Returns the first item and resets the cursor to the start.
final defgetClass(): Class[_]
Definition Classes
AnyRef → Any
defhasOwnProperty(v: String): Boolean
Definition Classes
Object
defhashCode(): Int
Definition Classes
AnyRef → Any
final defisInstanceOf[T0]: Boolean
Definition Classes
Any
defisPrototypeOf(v: Object): Boolean
Definition Classes
Object
varlist: Array[T]
The backing array: if specified the items in the list must be unique,
per Array.indexOf, and the ownership of the array should be relinquished to the ArraySet.
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.
http://phaser.io/docs/2.6.2/Phaser.ArraySet.html