Beispiel #1
0
        public ProxyStory(ModelStory story)
        {
            mStory = story;
            Quests = new ObservableCollection<ProxyQuest>();

            foreach (ModelQuest quest in mStory.Quests)
            {
                ProxyQuest pq = new ProxyQuest(quest);
                Quests.Add(pq);
            }
        }
Beispiel #2
0
        public ProxyStory(ModelStory story)
        {
            mStory = story;
            Quests = new ObservableCollection <ProxyQuest>();

            foreach (ModelQuest quest in mStory.Quests)
            {
                ProxyQuest pq = new ProxyQuest(quest);
                Quests.Add(pq);
            }
        }
Beispiel #3
0
 public void AddQuest(ProxyQuest quest, int index = -1)
 {
     if (index == -1 || index >= Quests.Count)
     {
         Quests.Add(quest);
         Value.Quests.Add(quest.Value);
     }
     else
     {
         Quests.Insert(index, quest);
         Value.Quests.Insert(index, quest.Value);
     }
     quest.Parent = this;
 }
Beispiel #4
0
 public void AddQuest(ProxyQuest quest, int index = -1)
 {
     if (index == -1 || index >= Quests.Count)
     {
         Quests.Add(quest);
         Value.Quests.Add(quest.Value);
     }
     else
     {
         Quests.Insert(index, quest);
         Value.Quests.Insert(index, quest.Value);
     }
     quest.Parent = this;
 }
Beispiel #5
0
 public void RemoveQuest(ProxyQuest quest)
 {
     Quests.Remove(quest);
     Value.Quests.Remove(quest.Value);
     quest.Parent = null;
 }
Beispiel #6
0
 public AddQuest(ProxyStory story, ProxyQuest quest)
 {
     mStory = story;
     mQuest = quest;
 }
Beispiel #7
0
 public void RemoveQuest(ProxyQuest quest)
 {
     Quests.Remove(quest);
     Value.Quests.Remove(quest.Value);
     quest.Parent = null;
 }
Beispiel #8
0
 public DelQuest(ProxyStory story, ProxyQuest quest)
 {
     mStory = story;
     mQuest = quest;
     mIndex = mStory.Quests.IndexOf(mQuest);
 }
Beispiel #9
0
 public AddStage(ProxyQuest quest, ProxyStage stage)
 {
     mQuest = quest;
     mStage = stage;
 }