-
Notifications
You must be signed in to change notification settings - Fork 115
EntityLinkManager Link Behavior
Fabio Ticconi edited this page Apr 8, 2017
·
4 revisions
You can exclude links from being managed. Tune per relationship with @LinkPolicy
public class Anchor extends Component {
@EntityId @LinkPolicy(SKIP)
public int target;
}
Policy | behavior |
---|---|
SKIP | Manager does nothing |
CHECK_SOURCE | Activates #onLinkEstablished , #onLinkKilled on LinkAdapter when !? |
CHECK_SOURCE_AND_TARGETS | Activates #onLinkEstablished , #onLinkKilled , #onTargetChanged , #onTargetDead on LinkAdapter when !? |
Default behavior differs between normal references and bags.
default policy | note | |
---|---|---|
@EntityId int |
CHECK_SOURCE_AND_TARGETS |
|
Entity |
CHECK_SOURCE_AND_TARGETS |
|
@EntityId IntBag |
CHECK_SOURCE |
Even with CHECK_SOURCE_AND_TARGETS , never calls #onTargetChanged |
Bag<Entity> |
CHECK_SOURCE |
Even with, CHECK_SOURCE_AND_TARGETS , never calls #onTargetChanged |
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference