Exemplo n.º 1
0
        internal override void ActionCommand(Game game)
        {
            if (!IsRunning)
            {
                switch (OrderType)
                {
                case OrderTypeEnum.NewJob:
                    IndustryTools.AddJob(_entityCommanding, productionLineID, _job);
                    break;

                case OrderTypeEnum.CancelJob:
                    IndustryTools.CancelExsistingJob(_entityCommanding, productionLineID, ItemID);
                    break;

                case OrderTypeEnum.EditJob:
                    IndustryTools.EditExsistingJob(_entityCommanding, productionLineID, ItemID, RepeatJob, NumberOrderd, AutoInstall);
                    break;

                case OrderTypeEnum.ChangePriority:
                    IndustryTools.ChangeJobPriority(_entityCommanding, productionLineID, ItemID, Delta);
                    break;
                }


                IsRunning = true;
            }
        }
Exemplo n.º 2
0
 public void ProcessEntity(Entity entity, int deltaSeconds)
 {
     IndustryTools.ConstructStuff(entity);
 }