Struct VehicleParams
Represents the parameters of a vehicle in the game.
public readonly struct VehicleParams : IEquatable<VehicleParams>
- Implements
- Inherited Members
Constructors
VehicleParams()
Initializes a new instance of the VehicleParams struct with default values.
public VehicleParams()
VehicleParams(sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte)
Initializes a new instance of the VehicleParams struct.
public VehicleParams(sbyte engine, sbyte lights, sbyte alarm, sbyte doors, sbyte bonnet, sbyte boot, sbyte objective, sbyte siren, sbyte doorDriver, sbyte doorPassenger, sbyte doorBackLeft, sbyte doorBackRight, sbyte windowDriver, sbyte windowPassenger, sbyte windowBackLeft, sbyte windowBackRight)
Parameters
enginesbyteThe state of the engine.
lightssbyteThe state of the lights.
alarmsbyteThe state of the alarm.
doorssbyteThe state of the doors.
bonnetsbyteThe state of the bonnet.
bootsbyteThe state of the boot.
objectivesbyteThe state of the objective.
sirensbyteThe state of the siren.
doorDriversbyteThe state of the driver's door.
doorPassengersbyteThe state of the passenger's door.
doorBackLeftsbyteThe state of the back-left door.
doorBackRightsbyteThe state of the back-right door.
windowDriversbyteThe state of the driver's window.
windowPassengersbyteThe state of the passenger's window.
windowBackLeftsbyteThe state of the back-left window.
windowBackRightsbyteThe state of the back-right window.
Fields
alarm
Gets the state of the vehicle's alarm.
public readonly sbyte alarm
Field Value
bonnet
Gets the state of the vehicle's bonnet.
public readonly sbyte bonnet
Field Value
boot
Gets the state of the vehicle's boot.
public readonly sbyte boot
Field Value
doorBackLeft
Gets the state of the back-left door.
public readonly sbyte doorBackLeft
Field Value
doorBackRight
Gets the state of the back-right door.
public readonly sbyte doorBackRight
Field Value
doorDriver
Gets the state of the driver's door.
public readonly sbyte doorDriver
Field Value
doorPassenger
Gets the state of the passenger's door.
public readonly sbyte doorPassenger
Field Value
doors
Gets the state of the vehicle's doors.
public readonly sbyte doors
Field Value
engine
Gets the state of the vehicle's engine.
public readonly sbyte engine
Field Value
lights
Gets the state of the vehicle's lights.
public readonly sbyte lights
Field Value
objective
Gets the state of the vehicle's objective.
public readonly sbyte objective
Field Value
siren
Gets the state of the vehicle's siren.
public readonly sbyte siren
Field Value
windowBackLeft
Gets the state of the back-left window.
public readonly sbyte windowBackLeft
Field Value
windowBackRight
Gets the state of the back-right window.
public readonly sbyte windowBackRight
Field Value
windowDriver
Gets the state of the driver's window.
public readonly sbyte windowDriver
Field Value
windowPassenger
Gets the state of the passenger's window.
public readonly sbyte windowPassenger
Field Value
Methods
Equals(VehicleParams)
public bool Equals(VehicleParams other)
Parameters
otherVehicleParams
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
IsSet()
Determines whether any of the vehicle parameters are set.
public bool IsSet()
Returns
- bool
trueif any parameter is set; otherwise,false.
ToString()
public override string ToString()
Returns
Operators
operator ==(VehicleParams, VehicleParams)
public static bool operator ==(VehicleParams left, VehicleParams right)
Parameters
leftVehicleParamsrightVehicleParams
Returns
operator !=(VehicleParams, VehicleParams)
public static bool operator !=(VehicleParams left, VehicleParams right)
Parameters
leftVehicleParamsrightVehicleParams