Container used to store Listeners
new(?members:Array<Listener>)
members:Array<Listener>
add(a:BodyOrBodies, b:BodyOrBodies, ?options:Null<ListenerOptions>):Listener
Add a new Listener to the collection.
Parameters:
a
The first Body or Array of Bodies to collide against.
Body
b
The second Body or Array of Bodies to collide against.
options
Options to define the Listener's behavior.
Returns:
The new Listener.
clear():Void
Clears the collection of all Listeners.
dispose():Void
Disposes of the collection. Do not use once disposed.
inlineiterator():Iterator<Listener>
remove(listener:Listener):Listener
Removes a Listener from the Container.
listener
Listener to remove.
The removed Listener.