示例#1
0
        /// <summary>
        /// Saves the designer and sub-designer
        /// </summary>
        public void Save()
        {
            BattleManager.BattleEffect.Data.Actions.UI.EffectAction_Designer design = (BattleManager.BattleEffect.Data.Actions.UI.EffectAction_Designer)EffectDesign;
            design.Save(ActionData.Action_Data);             // Saves the sub-designer

            ActionData.Action_Name    = Action_Name.Text;    // Saves the Name
            ActionData.Action_Comment = Action_Comment.Text; // Saves the comment
        }
示例#2
0
        /// <summary>
        /// Loads the designer and sub-designer
        /// </summary>
        public void Load()
        {
            BattleManager.BattleEffect.Data.Actions.UI.EffectAction_Designer design = (BattleManager.BattleEffect.Data.Actions.UI.EffectAction_Designer)EffectDesign;
            design.Load(ActionData.Action_Data);             // Loads the syb-designer

            Action_Name.Text    = ActionData.Action_Name;    // Loads the name
            Action_Comment.Text = ActionData.Action_Comment; // Loads the comment
        }