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); }
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); }