Package org.terasology.engine.subsystem

Examples of org.terasology.engine.subsystem.RenderingSubsystemFactory


        DefaultCelestialSystem celestialSystem = new DefaultCelestialSystem(new BasicCelestialModel());
        CoreRegistry.put(CelestialSystem.class, celestialSystem);
        CoreRegistry.get(ComponentSystemManager.class).register(celestialSystem);

        RenderingSubsystemFactory engineSubsystemFactory = CoreRegistry.get(RenderingSubsystemFactory.class);
        WorldRenderer worldRenderer = engineSubsystemFactory.createWorldRenderer(worldProvider, chunkProvider, CoreRegistry.get(LocalPlayerSystem.class));
        CoreRegistry.put(WorldRenderer.class, worldRenderer);

        // TODO: These shouldn't be done here, nor so strongly tied to the world renderer
        CoreRegistry.put(LocalPlayer.class, new LocalPlayer());
        CoreRegistry.put(Camera.class, worldRenderer.getActiveCamera());
View Full Code Here


        DefaultCelestialSystem celestialSystem = new DefaultCelestialSystem(new BasicCelestialModel());
        CoreRegistry.put(CelestialSystem.class, celestialSystem);
        CoreRegistry.get(ComponentSystemManager.class).register(celestialSystem);

        // Init. a new world
        RenderingSubsystemFactory engineSubsystemFactory = CoreRegistry.get(RenderingSubsystemFactory.class);
        WorldRenderer worldRenderer = engineSubsystemFactory.createWorldRenderer(worldProvider, chunkProvider, CoreRegistry.get(LocalPlayerSystem.class));
        CoreRegistry.put(WorldRenderer.class, worldRenderer);
        // TODO: These shouldn't be done here, nor so strongly tied to the world renderer
        CoreRegistry.put(Camera.class, worldRenderer.getActiveCamera());
        CoreRegistry.get(NetworkSystem.class).setRemoteWorldProvider(chunkProvider);
View Full Code Here

TOP

Related Classes of org.terasology.engine.subsystem.RenderingSubsystemFactory

Copyright © 2018 www.massapicom. 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.