Class VehicleModel
Class for all other road vehicle models
Inheritance
VehicleModel
Inherited Members
Namespace: Slipe.Server.Vehicles
Assembly: SlipeServer.dll
Syntax
public class VehicleModel : SharedVehicleModel
Constructors
| Improve this Doc View SourceVehicleModel(Int32)
Declaration
protected VehicleModel(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id |
Properties
| Improve this Doc View SourceHandling
Get the model handling of this vehicle model
Declaration
public ModelHandling Handling { get; }
Property Value
Type | Description |
---|---|
ModelHandling |
Vehicles
Get all the vehicles using this model in the server
Declaration
public BaseVehicle[] Vehicles { get; }
Property Value
Type | Description |
---|---|
BaseVehicle[] |
Methods
| Improve this Doc View SourceFromId(Int32)
Get a vehicle model from its ID, instantiated as the right model class
Declaration
public static VehicleModel FromId(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id | The Mta ID of the vehicle |
Returns
Type | Description |
---|---|
VehicleModel | The Vehicle model, instantiated as the right model class |
FromName(String)
Get a vehicle model from the model name as a string, instantiated as the right model class
Declaration
public static VehicleModel FromName(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The Mta name of the vehicle |
Returns
Type | Description |
---|---|
VehicleModel | The Vehicle model, instantiated as the right model class |