HazmatClassesProperty

data class HazmatClassesProperty(val hazmatClasses: Set<HazmatClass>) : VehicleProperty

Represents the CargoCapable.hazmatClasses property of the Vehicle.

Used for updating hazardous loads that may be restricted from some roads, via VehicleProvider.updateVehicleProperties

Constructors

Link copied to clipboard
constructor(hazmatClasses: Set<HazmatClass>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The hazardous materials classes of the vehicle's load. If empty set is passed, hazmatClasses will be ignored.