Ejemplo n.º 1
0
 public void CollectResource(WorldResourceType type, int amount)
 {
     if (resourcesCollected.ContainsKey(type))
     {
         resourcesCollected[type] += amount;
     }
 }
Ejemplo n.º 2
0
 public void CollectResource(WorldResourceType type, int amount)
 {
     foreach (var quest in Quests)
     {
         quest.CollectResource(type, amount);
     }
 }
Ejemplo n.º 3
0
        public ProductionCampData CreateNewProductionCamp(WorldResourceType resourceType, string areaId)
        {
            var data = new ProductionCampData()
            {
                Type     = SectionType.ProductionCamp.ToString(),
                Resource = resourceType,
                AreaId   = areaId,
            };

            data.SetupDefaultValues();
            return(data);
        }