private BuildOrderProcessorItem CreateBuildOrderItemWithAdjustedResourcesAndStatistics(int secondInTimeLine, BuildItemEntity item, BuildItemStatistics stats)
        {
            stats.CurrentSupply += item.CostSupply;

            var newItem = new BuildOrderProcessorItem(secondInTimeLine, item, stats, this.GetBuildItemOrder());

            this.RunActions(item.OrderedActions, stats);

            this.mConfig.BuildManagerModules.AdjustModuleStatsByStartedItem(newItem, item, stats);

            return(newItem);
        }
Exemplo n.º 2
0
 public BuildOrderProcessorItem GetItemBefore(BuildOrderProcessorItem baseItem)
 {
     return(this.BuildItems.Where(i => i.Order < baseItem.Order).OrderByDescending(p => p.Order).FirstOrDefault());
 }
Exemplo n.º 3
0
 public void AddBuildItem(BuildOrderProcessorItem item)
 {
     this.BuildItems.Add(item);
     this.LastBuildItem = item;
 }
Exemplo n.º 4
0
 public virtual void AdjustModuleStatsByUndoItem(BuildOrderProcessorItem undoBoItem, BuildOrderProcessorItem newLastItem)
 {
 }
Exemplo n.º 5
0
 public virtual void AdjustModuleStatsByStartedItem(BuildOrderProcessorItem boItem, BuildItemEntity item, BuildItemStatistics stats)
 {
 }