Exemple #1
0
        public static IndustryOrder2 CreateCancelJobOrder(
            Guid factionGuid, Entity thisEntity, Guid productionLineID,
            Guid OrderID
            )
        {
            IndustryOrder2 order = new IndustryOrder2(factionGuid, thisEntity);

            order.OrderType        = OrderTypeEnum.CancelJob;
            order.ItemID           = OrderID;
            order.productionLineID = productionLineID;
            return(order);
        }
Exemple #2
0
        public static IndustryOrder2 CreateNewJobOrder(
            Guid factionGuid, Entity thisEntity, Guid productionLineID,
            IndustryJob jobItem
            )
        {
            IndustryOrder2 order = new IndustryOrder2(factionGuid, thisEntity);

            order._job             = jobItem;
            order.OrderType        = OrderTypeEnum.NewJob;
            order.ItemID           = jobItem.ItemGuid;
            order.productionLineID = productionLineID;
            return(order);
        }
Exemple #3
0
        public static IndustryOrder2 CreateChangePriorityOrder(
            Guid factionGuid, Entity thisEntity,
            Guid productionLineID,
            Guid OrderID, short delta
            )
        {
            IndustryOrder2 order = new IndustryOrder2(factionGuid, thisEntity);

            order.OrderType        = OrderTypeEnum.ChangePriority;
            order.ItemID           = OrderID;
            order.Delta            = delta;
            order.productionLineID = productionLineID;
            return(order);
        }
Exemple #4
0
        public static IndustryOrder2 CreateEditJobOrder(
            Guid factionGuid, Entity thisEntity, Guid productionLineID,
            Guid OrderID, ushort quantity = 1, bool repeatJob = false, bool autoInstall = false
            )
        {
            IndustryOrder2 order = new IndustryOrder2(factionGuid, thisEntity);

            order.OrderType        = OrderTypeEnum.EditJob;
            order.ItemID           = OrderID;
            order.NumberOrderd     = quantity;
            order.RepeatJob        = repeatJob;
            order.AutoInstall      = autoInstall;
            order.productionLineID = productionLineID;
            return(order);
        }