Skip to content
Daan van Yperen edited this page Jan 2, 2019 · 30 revisions

About Managed Links

What happens when a component refers to an entity and that entity gets deleted? A mess! This optional module will manage your entity references for you and can deal with complicated relationships easily.

public class Anchor extends Component {
    @EntityId public int target = -1; // managed
    public Entity target2;            // managed
}

Uses

  • Prevent dangling references to entities.
  • Remove referencing components when target entity dies.
  • Remove child entities when parent dies.

Limitations

Topics

FAQ

Clone this wiki locally