use of ilargia.entitas.caching.EntitasCache in project Entitas-Java by Rubentxu.
the class EntityTest method setUp.
@Before
public void setUp() throws Exception {
createCollections();
_componentPools = new Stack[10];
EntitasCache cache = new EntitasCache();
entity = new TestEntity();
entity.initialize(0, 10, _componentPools, new ContextInfo("Test", TestComponentIds.componentNames(), TestComponentIds.componentTypes()));
entity.clearEventsListener();
entity.reactivate(0);
entity.addComponent(TestComponentIds.Position, new Position(100, 100));
entity.addComponent(TestComponentIds.View, new View(1));
}
Aggregations