Beispiel #1
0
        private bool InitSubSystem(GameConfigXml gameOptions)
        {
            appStateMgr = new AppStateManager();
            locateMgr   = LocateSystem.Instance;
            modMgr      = new ModManager();
            outputMgr   = new OutputManager();
            soundMgr    = new MusicSoundManager();
            uiMgr       = new ScreenManager();

            MusicSoundManager.Instance.InitSystem(
                gameOptions.AudioConfig.EnableMusic,
                gameOptions.AudioConfig.EnableSound
                );

            return(true);
        }
Beispiel #2
0
        private bool InitSubSystem(Dictionary <string, string> gameOptions)
        {
            appStateMgr = new AppStateManager();
            locateMgr   = LocateSystem.Singleton;
            modMgr      = new ModManager();
            networkMgr  = new NetworkManager();
            outputMgr   = new OutputManager();
            soundMgr    = new SoundManager();
            uiMgr       = new ScreenManager();

            SoundManager.Instance.InitSystem(gameOptions["EnableMusic"] == "True" ? true : false, gameOptions["EnableSound"] == "True" ? true : false);

            Update += modMgr.Update;
            Update += outputMgr.Update;
            Update += soundMgr.Update;
            Update += uiMgr.Update;

            return(true);
        }