예제 #1
0
        public void SendNewLoadCargoOrder(DateTime currentDatetime)
        {
            var newOrder = new CargoXferOrder();

            newOrder.CreatedDate           = currentDatetime;
            newOrder.RequestingFactionGuid = _faction.Guid;
            newOrder.SendCargoToEntityGuid = _loadFromEntity.Guid;
            newOrder.EntityCommandingGuid  = _faction.Guid;
            //newOrder.ItemToTransfer = SelectedCargoItem.ID;
            //newOrder.TotalAmountToTransfer = AmountToTransfer;
            _orderHandler.HandleOrder(newOrder);
        }
예제 #2
0
        public static void CreateCommand(Game game, Entity faction, Entity cargoFromEntity, Entity cargoToEntity, List <Tuple <Guid, long> > itemsToMove)
        {
            var cmd = new CargoXferOrder()
            {
                RequestingFactionGuid = faction.Guid,
                EntityCommandingGuid  = cargoFromEntity.Guid,
                CreatedDate           = cargoFromEntity.Manager.ManagerSubpulses.StarSysDateTime,
                SendCargoToEntityGuid = cargoToEntity.Guid,
                ItemsGuidsToTransfer  = itemsToMove
            };

            game.OrderHandler.HandleOrder(cmd);
        }