Package org.terasology.engine

Examples of org.terasology.engine.ComponentSystemManager.iterateAll()


    private void startSaving() {
        logger.info("Saving - Creating game snapshot");
        PerformanceMonitor.startActivity("Auto Saving");
        ComponentSystemManager componentSystemManager = CoreRegistry.get(ComponentSystemManager.class);
        for (ComponentSystem sys : componentSystemManager.iterateAll()) {
            sys.preSave();
        }

        saveRequested = false;
        saveTransaction = createSaveTransaction();
View Full Code Here


        saveRequested = false;
        saveTransaction = createSaveTransaction();
        saveThreadManager.offer(saveTransaction);

        for (ComponentSystem sys : componentSystemManager.iterateAll()) {
            sys.postSave();
        }
        scheduleNextAutoSave();
        PerformanceMonitor.endActivity();
        logger.info("Saving - Snapshot created: Writing phase starts");
View Full Code Here

    }

    @Override
    public void begin() {
        ComponentSystemManager csm = CoreRegistry.get(ComponentSystemManager.class);
        componentSystems = csm.iterateAll().iterator();
    }

    @Override
    public int getExpectedCost() {
        return 1;
View Full Code Here

    }

    @Override
    public void begin() {
        ComponentSystemManager csm = CoreRegistry.get(ComponentSystemManager.class);
        componentSystems = csm.iterateAll().iterator();
    }

    @Override
    public int getExpectedCost() {
        return 1;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.