public interface LinkListener
EntityLinkManager
Modifier and Type | Method and Description |
---|---|
void |
onLinkEstablished(int sourceId,
int targetId)
Established connection between
sourceId:ComponentType:Field
and targetId . |
void |
onLinkKilled(int sourceId,
int targetId)
Deletion of source entity or its component.
|
void |
onTargetChanged(int sourceId,
int targetId,
int oldTargetId)
Target entity has changed.
|
void |
onTargetDead(int sourceId,
int deadTargetId)
Target entity dead.
|
void onLinkEstablished(int sourceId, int targetId)
sourceId:ComponentType:Field
and targetId
.sourceId
- entity owning component.targetId
- a valid entity id, or -1 if source links via IntBag or Bag-of-Entity.void onLinkKilled(int sourceId, int targetId)
sourceId
- entity owning component.targetId
- appointed child, or -1 if source links via IntBag or Bag-of-Entity.void onTargetDead(int sourceId, int deadTargetId)
sourceId
- entity owning component.deadTargetId
- a valid entity id.void onTargetChanged(int sourceId, int targetId, int oldTargetId)
sourceId
- entity owning component.targetId
- a valid entity id.oldTargetId
- previous entity id.Copyright © 2019. All rights reserved.