Пример #1
0
 public void Link(Colony colony)
 {
     colony.Storage.AddContainer(this);
 }
Пример #2
0
 public void Tick(Colony colony)
 {
     throw new NotImplementedException();
 }
Пример #3
0
        public override bool Check(Colony colony)
        {
            var count = colony.Improvements.Count(p => p.ResourceKey == Key);

            return(count >= Amount);
        }
Пример #4
0
        public override bool Check(Colony colony)
        {
            var inv = colony.GetInventory(Key);

            return(inv != null && inv.Quantity >= Amount);
        }
Пример #5
0
 public abstract void Consume(Colony colony);
Пример #6
0
 public abstract bool Check(Colony colony);