Exemple #1
0
        public override Node CreateNode(string label)
        {
            var newItem = new ResearchItem(label);

            Items.Add(newItem);
            return(newItem);
        }
Exemple #2
0
 public void Unlock(string itemName) {
     ResearchItem researchedItem = Items.FirstOrDefault(item => item.Label == itemName);
     if (researchedItem == null) {
         researchedItem = new ResearchItem(itemName);
         researchedItem.PushProperty("Desired", "false");
     }
     researchedItem.Progress = 1;
 }
Exemple #3
0
        public void Lock(string itemName)
        {
            ResearchItem researchedItem = Items.FirstOrDefault(item => item.Label == itemName);

            if (researchedItem != null && researchedItem.Progress > .999)
            {
                Items.RemoveAll(item => item.Label == itemName);
            }
        }
Exemple #4
0
        public void Unlock(string itemName)
        {
            ResearchItem researchedItem = Items.FirstOrDefault(item => item.Label == itemName);

            if (researchedItem == null)
            {
                researchedItem = new ResearchItem(itemName);
                researchedItem.PushProperty("Desired", "false");
            }
            researchedItem.Progress = 1;
        }
Exemple #5
0
 public override Node CreateNode(string label) {
     var newItem = new ResearchItem(label);
     Items.Add(newItem);
     return newItem;
 }