Search in sources :

Example 1 with EventLibrary

use of org.terasology.engine.entitySystem.metadata.EventLibrary in project Terasology by MovingBlocks.

the class InitialiseSystems method step.

@Override
public boolean step() {
    EngineEntityManager entityManager = (EngineEntityManager) context.get(EntityManager.class);
    EventLibrary eventLibrary = context.get(EventLibrary.class);
    BlockEntityRegistry blockEntityRegistry = context.get(BlockEntityRegistry.class);
    context.get(NetworkSystem.class).connectToEntitySystem(entityManager, eventLibrary, blockEntityRegistry);
    ComponentSystemManager csm = context.get(ComponentSystemManager.class);
    csm.initialise();
    return true;
}
Also used : EngineEntityManager(org.terasology.engine.entitySystem.entity.internal.EngineEntityManager) EngineEntityManager(org.terasology.engine.entitySystem.entity.internal.EngineEntityManager) EntityManager(org.terasology.engine.entitySystem.entity.EntityManager) EventLibrary(org.terasology.engine.entitySystem.metadata.EventLibrary) NetworkSystem(org.terasology.engine.network.NetworkSystem) BlockEntityRegistry(org.terasology.engine.world.BlockEntityRegistry) ComponentSystemManager(org.terasology.engine.core.ComponentSystemManager)

Aggregations

ComponentSystemManager (org.terasology.engine.core.ComponentSystemManager)1 EntityManager (org.terasology.engine.entitySystem.entity.EntityManager)1 EngineEntityManager (org.terasology.engine.entitySystem.entity.internal.EngineEntityManager)1 EventLibrary (org.terasology.engine.entitySystem.metadata.EventLibrary)1 NetworkSystem (org.terasology.engine.network.NetworkSystem)1 BlockEntityRegistry (org.terasology.engine.world.BlockEntityRegistry)1