Пример #1
0
 public void HandleOrder(EntityCommand entityCommand)
 {
     if (entityCommand.IsValidCommand(Game))
     {
         entityCommand.EntityCommanding.GetDataBlob <OrderableDB>().ActionList.Add(entityCommand);
         var commandList = entityCommand.EntityCommanding.GetDataBlob <OrderableDB>().ActionList;
         OrderableProcessor.ProcessOrderList(Game, commandList);
     }
 }
Пример #2
0
 public void HandleOrder(EntityCommand entityCommand)
 {
     if (entityCommand.IsValidCommand(Game))
     {
         if (entityCommand.UseActionLanes)
         {
             var orderableDB = entityCommand.EntityCommanding.GetDataBlob <OrderableDB>();
             orderableDB.AddCommandToList(entityCommand);
             orderableDB.ProcessOrderList(entityCommand.EntityCommanding.StarSysDateTime);
         }
         else
         {
             if (entityCommand.EntityCommanding.StarSysDateTime >= entityCommand.ActionOnDate)
             {
                 entityCommand.ActionCommand(entityCommand.EntityCommanding.StarSysDateTime);
             }
             else
             {
                 entityCommand.EntityCommanding.Manager.ManagerSubpulses.AddEntityInterupt(entityCommand.ActionOnDate, nameof(OrderableProcessor), entityCommand.EntityCommanding);
             }
         }
     }
 }