Ejemplo n.º 1
0
        private void CreateSystems()
        {
            ISystem systemRen;

            systemRen = new SystemRender(Content.Load <Effect>("Shaders/shaderGAME.mgfx"));
            systemManager.AddSystem(systemRen);

            ISystem systemPhy;

            systemPhy = new SystemPhysics();
            systemManager.AddSystem(systemPhy);

            ISystem systemAud;

            systemAud = new SystemAudio();
            systemManager.AddSystem(systemAud);

            ISystem systemAnim = new SystemAnimation();

            systemManager.AddSystem(systemAnim);

            ISystem systemRenUI;

            systemRenUI = new SystemRenderUI(Content.Load <Effect>("Shaders/shaderUI.mgfx"));
            systemManager.AddSystem(systemRenUI);
        }
Ejemplo n.º 2
0
        private void CreateSystems()
        {
            SystemManager systemManager = SystemManager.Instance();

            Game_Engine.Systems.System newSystem;

            newSystem = new SystemRender(entityCamera);
            systemManager.AddRenderSystem(newSystem);

            newSystem = new SystemRender(mapCamera);
            systemManager.AddRenderSystem(newSystem);

            newSystem = new SystemInput();
            systemManager.AddUpdateSystem(newSystem);

            newSystem = new SystemPhysics();
            systemManager.AddUpdateSystem(newSystem);

            newSystem = new SystemCollision();
            systemManager.AddUpdateSystem(newSystem);

            newSystem       = new SystemArtificialInput(map);
            artificialInput = (SystemArtificialInput)newSystem;
            systemManager.AddUpdateSystem(newSystem);

            newSystem = new SystemAnimation();
            systemManager.AddUpdateSystem(newSystem);

            newSystem = new SystemAudio();
            systemManager.AddUpdateSystem(newSystem);
        }