Skip to content

Entity References and Serialization

Daan van Yperen edited this page Sep 5, 2015 · 13 revisions

Valid methods of referencing entities compatible with serialization:

public class Parent extends Component  {

    public Entity entity;
    public Bag<Entity> entities;

    @EntityId 
    public int parentId;

    @EntityId 
    public IntBag entityIds = new IntBag();  
}
Clone this wiki locally