Esempio n. 1
0
        public static GameControlRequest CreateUnitWeaponOrdersOrder(
            GameConstants.WeaponOrders weaponOrders, string unitId)
        {
            GameControlRequest request = new GameControlRequest();

            request.ControlRequestType = CommsMarshaller.GameControlRequestType.SetWeaponOrdersUnit;
            request.WeaponOrders       = weaponOrders;
            request.Id = unitId;
            return(request);
        }
Esempio n. 2
0
        public static GameControlRequest CreateGlobalWeaponOrdersOrder(
            GameConstants.WeaponOrders weaponOrders, bool changeAllUnits)
        {
            GameControlRequest request = new GameControlRequest();

            request.ControlRequestType = CommsMarshaller.GameControlRequestType.SetWeaponOrdersGlobal;
            request.WeaponOrders       = weaponOrders;
            request.IsParameter        = changeAllUnits;
            return(request);
        }