BitCollectors.QfgCharacterEditor.Library.QfgCharacter.LoadGameInfo C# (CSharp) 메소드

LoadGameInfo() 공개 메소드

public LoadGameInfo ( ) : void
리턴 void
        public void LoadGameInfo()
        {
            switch (this.QfgGame)
            {
                case QfgGames.QFG1:
                    this.QfgGameInfo = new Qfg1GameInfo();
                    break;

                case QfgGames.QFG2:
                    this.QfgGameInfo = new Qfg2GameInfo();
                    break;
            }

            if (!this.AcrobaticsEnabled)
                this.Acrobatics = 0;

            if (!this.CommunicationEnabled)
                this.Communication = 0;

            if (!this.HonorEnabled)
                this.Honor = 0;

            if (!this.InventoryPoisonCurePotionEnabled)
                this.InventoryPoisonCurePotions = 0;

            if (!this.MagicSkillForceBoltEnabled)
                this.MagicSkillForceBolt = 0;

            if (!this.MagicSkillLevitateEnabled)
                this.MagicSkillLevitate = 0;

            if (!this.MagicSkillReversalEnabled)
                this.MagicSkillReversal = 0;
        }
        #endregion

Usage Example

        public ActionResult ChangeGame(QfgCharacter qfgCharacter)
        {
            ResetModelState();

            qfgCharacter.LoadGameInfo();

            return View(Request.Form["Page"], qfgCharacter);
        }