Example #1
0
 public BaseBuilderQueueManager(BaseBuilderBotModule baseBuilder, string category, Player p, PowerManager pm,
                                PlayerResources pr, BitArray resourceTypeIndices)
 {
     this.baseBuilder         = baseBuilder;
     world                    = p.World;
     player                   = p;
     playerPower              = pm;
     playerResources          = pr;
     this.category            = category;
     failRetryTicks           = baseBuilder.Info.StructureProductionResumeDelay;
     minimumExcessPower       = baseBuilder.Info.MinimumExcessPower;
     this.resourceTypeIndices = resourceTypeIndices;
 }
Example #2
0
 public BaseBuilderQueueManager(BaseBuilderBotModule baseBuilder, string category, Player p, PowerManager pm,
                                PlayerResources pr, IResourceLayer rl)
 {
     this.baseBuilder   = baseBuilder;
     world              = p.World;
     player             = p;
     playerPower        = pm;
     playerResources    = pr;
     resourceLayer      = rl;
     this.category      = category;
     failRetryTicks     = baseBuilder.Info.StructureProductionResumeDelay;
     minimumExcessPower = baseBuilder.Info.MinimumExcessPower;
     if (!baseBuilder.Info.NavalProductionTypes.Any())
     {
         waterState = WaterCheck.DontCheck;
     }
 }