Exemplo n.º 1
0
        public static UnitOrder CreateSensorActivationOrder(string unitId, GameConstants.SensorType sensorType, bool isActive)
        {
            UnitOrder order = new UnitOrder(GameConstants.UnitOrderType.SensorActivationOrder, unitId);

            order.SecondId    = string.Empty;
            order.SensorType  = sensorType;
            order.IsParameter = isActive;

            return(order);
        }
Exemplo n.º 2
0
        public static UnitOrder CreateSensorDeploymentOrder(string unitId, GameConstants.SensorType sensorType,
                                                            bool isDeployed, bool isDeep)
        {
            UnitOrder order = new UnitOrder(GameConstants.UnitOrderType.SensorDeploymentOrder, unitId);

            order.SecondId    = string.Empty;
            order.SensorType  = sensorType;
            order.IsParameter = isDeployed;
            if (isDeep)
            {
                order.ValueParameter = 1;
            }

            return(order);
        }