Ejemplo n.º 1
0
        private void StartNormal()
        {
            m_mode = Mode.Normal;

            MathHelp.InitRandom();

            timerManager  = CreateTimerManager();
            notifications = CreateNotifications(timerManager);
            sharedStorage = CreateSharedStorage("storage", timerManager);

            inputManager = CreateInputManager();
            if (inputManager is IUpdatable)
            {
                AddUpdatable(inputManager as IUpdatable);
            }

            CreateDemoRecorder();

            assetManager = CreateAssetManager();

            rootController = CreateRootController();
            AddGameObject(rootController);

            started = true;
            OnStart();

            inputManager.AddInputListener(rootController);
            rootController.Start();
        }
Ejemplo n.º 2
0
        private void StartDemo(String path)
        {
            m_mode = Mode.Demo;

            timerManager  = CreateTimerManager();
            notifications = CreateNotifications(timerManager);
            sharedStorage = CreateSharedStorage("storage", timerManager);

            m_demoPlayer = new DemoPlayer(path);

            inputManager = new DemoPlayerInputManager();
            assetManager = CreateAssetManager();

            rootController = CreateRootController();
            AddGameObject(rootController);

            started = true;
            OnStart();

            inputManager.AddInputListener(rootController);
            rootController.Start();
        }
        private void StartNormal()
        {
            m_mode = Mode.Normal;

            MathHelp.InitRandom();

            timerManager = CreateTimerManager();
            notifications = CreateNotifications(timerManager);
            sharedStorage = CreateSharedStorage("storage", timerManager);

            inputManager = CreateInputManager();
            if (inputManager is IUpdatable)
            {
                AddUpdatable(inputManager as IUpdatable);
            }

            CreateDemoRecorder();

            assetManager = CreateAssetManager();

            rootController = CreateRootController();
            AddGameObject(rootController);

            started = true;
            OnStart();

            inputManager.AddInputListener(rootController);
            rootController.Start();
        }
        private void StartDemo(String path)
        {
            m_mode = Mode.Demo;

            timerManager = CreateTimerManager();
            notifications = CreateNotifications(timerManager);
            sharedStorage = CreateSharedStorage("storage", timerManager);

            m_demoPlayer = new DemoPlayer(path);

            inputManager = new DemoPlayerInputManager();
            assetManager = CreateAssetManager();

            rootController = CreateRootController();
            AddGameObject(rootController);

            started = true;
            OnStart();

            inputManager.AddInputListener(rootController);
            rootController.Start();
        }