Inheritance: IAreaElement, IJobSource, IJobObserver
Example #1
0
        public static Stockpile CreateStockpile(EnvironmentObject environment, IntGrid2Z area)
        {
            var stockpile = new Stockpile(environment, area);

            environment.AddAreaElement(stockpile);
            return(stockpile);
        }
Example #2
0
 public StoreToStockpileJob(IJobObserver parent, Stockpile stockpile, ItemObject item)
     : base(parent)
 {
     this.Item   = item;
     m_stockpile = stockpile;
     m_state     = State.MoveToItem;
 }
Example #3
0
 public StoreToStockpileJob(IJobObserver parent, Stockpile stockpile, ItemObject item)
     : base(parent)
 {
     this.Item = item;
     m_stockpile = stockpile;
     m_state = State.MoveToItem;
 }
Example #4
0
 public static void DestructStockpile(Stockpile stockpile)
 {
     stockpile.Environment.RemoveAreaElement(stockpile);
 }
Example #5
0
 public static Stockpile CreateStockpile(EnvironmentObject environment, IntGrid2Z area)
 {
     var stockpile = new Stockpile(environment, area);
     environment.AddAreaElement(stockpile);
     return stockpile;
 }
Example #6
0
 public static void DestructStockpile(Stockpile stockpile)
 {
     stockpile.Environment.RemoveAreaElement(stockpile);
 }