Drag[en]gine Script Module DragonScript Script API  1.0
CollectElementsListener Class Reference

Collect hit elements into an array without duplicates. More...

Inheritance diagram for CollectElementsListener:
ColliderListener

Public Member Functions

bool canHitCollider (Collider owner, Collider collider)
 Collider can collide with another collider. More...
 
void colliderChanged (Collider owner)
 Collider changed not used. More...
 
void collisionResponse (Collider owner, CollisionInfo info)
 Collision response. More...
 
Array getCollected ()
 Array to add collected elements to. More...
 
CollectElementsListener new ()
 Create listener. More...
 
CollectElementsListener new (Array collected)
 Create listener. More...
 
void setCollected (Array collected)
 Set array to add collected elements to. More...
 
Notifications.

Detailed Description

Collect hit elements into an array without duplicates.

Author
Roland Pl├╝ss
Version
1.0

Member Function Documentation

◆ canHitCollider()

bool canHitCollider ( Collider  owner,
Collider  collider 
)

Collider can collide with another collider.

Implements ColliderListener.

◆ colliderChanged()

void colliderChanged ( Collider  owner)

Collider changed not used.

Implements ColliderListener.

◆ collisionResponse()

void collisionResponse ( Collider  owner,
CollisionInfo  info 
)

Collision response.

Implements ColliderListener.

◆ getCollected()

Array getCollected ( )

Array to add collected elements to.

◆ new() [1/2]

Create listener.

◆ new() [2/2]

CollectElementsListener new ( Array  collected)

Create listener.

◆ setCollected()

void setCollected ( Array  collected)

Set array to add collected elements to.


The documentation for this class was generated from the following file: