-
Notifications
You must be signed in to change notification settings - Fork 113
EntityLinkManager getting started
Adrian Papari edited this page Feb 21, 2017
·
4 revisions
- Register
EntityLinkManager.class
with the World/WorldConfiguration. - (Recommended) Setup artemis-odb-plugin to avoid slow reflection calls.
Components with fields referencing other entities are managed automatically.
@PooledWeaver
public class Anchor extends Component {
@EntityId public int target = -1; // managed
public Entity target2; // managed
}
Set target
and target2
like you would normally. Whenever the entity referenced by target is removed, it will automatically be set to -1
(or null
for Entity
).
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference