src/engine/setup/GameInitializer.java
public static void initializeNewGame (Map <Integer, Map<String, Component>> entities, double renderCenterX, double renderCenterY) {
        SystemManager.addSystems(systems);

        entities.forEach((key, value) -> {
            if (value.containsKey(XPosition.KEY) && value.containsKey(YPosition.KEY)) {
                XPosition px = (XPosition) value.get(XPosition.KEY);
                YPosition py = (YPosition) value.get(YPosition.KEY);
                RenderManager.add(new Position(px.getPID(), px.getData(), py.getData()));
                
            }
            SystemManager.addEntity(key, value);
        });

        SystemManager.setActives(RenderManager.render(renderCenterX, renderCenterY));
    }
/**
     * Creates the managers and systems, then reads in the entities. Sets up the rendering system and input handler
     *
     * @param entities
     */
Creates the managers and systems, then reads in the entities. Sets up the rendering system and input handler
@param entities
Creates the managers and systems then reads in the entities . Sets up the rendering system and input handler @param entities
public static void initializeNewGame (Map <Integer, Map<String, Component>> entities, double renderCenterX, double renderCenterY) {
        SystemManager.addSystems(systems);
        entities.forEach((key, value) -> {
            if (value.containsKey(XPosition.KEY) && value.containsKey(YPosition.KEY)) {
                XPosition px = (XPosition) value.get(XPosition.KEY);
                YPosition py = (YPosition) value.get(YPosition.KEY);
                RenderManager.add(new Position(px.getPID(), px.getData(), py.getData()));
            }
            SystemManager.addEntity(key, value);
        });
        SystemManager.setActives(RenderManager.render(renderCenterX, renderCenterY));
    }
public static void initializeNewGame ( Map < Integer , Map < String , Component > > entities , double renderCenterX , double renderCenterY ) { SystemManager . addSystems ( systems ) ; entities . forEach ( ( key , value ) -> { if ( value . containsKey ( XPosition . KEY ) && value . containsKey ( YPosition . KEY ) ) { XPosition px = ( XPosition ) value . get ( XPosition . KEY ) ; YPosition py = ( YPosition ) value . get ( YPosition . KEY ) ; RenderManager . add ( new Position ( px . getPID ( ) , px . getData ( ) , py . getData ( ) ) ) ; } SystemManager . addEntity ( key , value ) ; } ) ; SystemManager . setActives ( RenderManager . render ( renderCenterX , renderCenterY ) ) ; }
Creates the managers and systems, then reads in the entities.
Creates the managers and systems then reads in the entities .