Show / Hide Table of Contents

Class VehicleModel

Class for all other road vehicle models

Inheritance
Object
SharedVehicleModel
VehicleModel
BoatModel
HelicopterModel
PlaneModel
TaxiModel
TrailerModel
TrainModel
TurretedModel
Inherited Members
SharedVehicleModel.boatModels
SharedVehicleModel.planeModels
SharedVehicleModel.helicopterModels
SharedVehicleModel.trailerModels
SharedVehicleModel.trainModels
SharedVehicleModel.turretedModels
SharedVehicleModel.taxiModels
SharedVehicleModel.Id
SharedVehicleModel.Name
SharedVehicleModel.OriginalHandling
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Vehicles
Assembly: SlipeServer.dll
Syntax
public class VehicleModel : SharedVehicleModel

Constructors

| Improve this Doc View Source

VehicleModel(Int32)

Declaration
protected VehicleModel(int id)
Parameters
Type Name Description
Int32 id

Properties

| Improve this Doc View Source

Handling

Get the model handling of this vehicle model

Declaration
public ModelHandling Handling { get; }
Property Value
Type Description
ModelHandling
| Improve this Doc View Source

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 Source

FromId(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

| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
Back to top Generated by DocFX