Beispiel #1
0
        public void OnStructureCreated(QuestStructureType type)
        {
            bool needTryComplete = false;

            foreach (QuestInfo startedQuest in startedQuests)
            {
                CreateStructureQuestCondition condition = null;
                if (startedQuest.Data.TryGetCompleteCondition <CreateStructureQuestCondition>(PlayerRace, out condition))
                {
                    CreatedStructure = new CreatedStructure(type);
                    needTryComplete  = true;
                }
            }
            if (needTryComplete)
            {
                TryCompleteQuest(sendUpdate: true);
            }
            logger.Info($"{LOG_TAG}: created structure {type}");
        }
Beispiel #2
0
 public CreateStructureQuestCondition(UniXMLElement element)
 {
     Structure = element.GetEnum <QuestStructureType>("value");
     //Count = element.GetInt("count");
 }
Beispiel #3
0
 public CreatedStructure(QuestStructureType type)
 {
     Type = type;
 }