예제 #1
0
        /// <summary>
        /// Loads the currently selected mod.
        /// </summary>
        protected virtual void LoadMod()
        {
            TypeManager.Load();
            GameInfo.Load();
            TextureManager.Load();
            FontManager.Load();
            GameScreenManager.Load();
            GuiManager.Load();
            ScriptManager.Load();

            CustomComponents.Add(VariableManager.Id, VariableManager);

            // Load all the custom components - note that the instancing of the components occurs earlier, in GameInfo.Load
            CustomComponents.Load();
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BlackbirdGame"/> class.
        /// </summary>
        public BlackbirdGame()
        {
            ModName           = "default";
            CustomComponents  = new CustomComponentCollection();
            GameInfo          = new BlackbirdGameInfo(this);
            TextureManager    = new TextureManager(this);
            FontManager       = new FontManager(this);
            GameScreenManager = new GameScreenManager(this);
            GuiManager        = new GuiManager(this);
            TypeManager       = new TypeManager(this);
            VariableManager   = new GameVariableManager(this);
            ScriptManager     = new ScriptManager(this);
            MouseManager      = new MouseManager(this);

            VariableManager.SetVariable("time", "");
        }