C# Class OpenBveApi.Runtime.VehicleSpecs

Represents the specification of the train.
Mostrar archivo Open project: leezer3/OpenBVE Class Usage Examples

Public Methods

Method Description
VehicleSpecs ( int powerNotches, BrakeTypes brakeType, int brakeNotches, bool hasHoldBrake, int cars ) : System

Creates a new instance of this class.

Method Details

VehicleSpecs() public method

Creates a new instance of this class.
public VehicleSpecs ( int powerNotches, BrakeTypes brakeType, int brakeNotches, bool hasHoldBrake, int cars ) : System
powerNotches int The number of power notches the train has.
brakeType BrakeTypes The type of brake the train uses.
brakeNotches int The number of brake notches the train has, including the hold brake, but excluding the emergency brake.
hasHoldBrake bool Whether the train has a hold brake.
cars int The number of cars the train has.
return System