コード例 #1
0
        public QuestState(Quest quest, State state = null)
        {
            this.quest = quest;

            createNew     = state == null;
            OriginalState = state ?? State.Dumb;
            Action        = QuestStateProcessAction.None;
            ModifiedState = OriginalState.Clone();

            InitializeComponent();

            Customize();
        }
コード例 #2
0
        private void deleteButton_Click(object sender, System.EventArgs e)
        {
            Action = QuestStateProcessAction.Remove;

            Close();
        }
コード例 #3
0
        private void saveButton_Click(object sender, System.EventArgs e)
        {
            Action = createNew ? QuestStateProcessAction.Add : QuestStateProcessAction.Edit;

            Close();
        }