Class UnturnedVehicle
Inheritance
System.Object
UnturnedVehicle
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicle : object, IVehicle, IHasOwnership
Constructors
|
Improve this Doc
View Source
UnturnedVehicle(InteractableVehicle)
Declaration
public UnturnedVehicle(InteractableVehicle vehicle)
Parameters
Type |
Name |
Description |
InteractableVehicle |
vehicle |
|
Properties
|
Improve this Doc
View Source
Asset
Declaration
public IVehicleAsset Asset { get; }
Property Value
|
Improve this Doc
View Source
Driver
Declaration
public IEntity Driver { get; }
Property Value
|
Improve this Doc
View Source
Ownership
Declaration
public IOwnership Ownership { get; }
Property Value
|
Improve this Doc
View Source
Passengers
Declaration
public IReadOnlyCollection<IEntity> Passengers { get; }
Property Value
Type |
Description |
IReadOnlyCollection<IEntity> |
|
|
Improve this Doc
View Source
State
Declaration
public IVehicleState State { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public IWorldTransform Transform { get; }
Property Value
|
Improve this Doc
View Source
Vehicle
Declaration
public InteractableVehicle Vehicle { get; }
Property Value
Type |
Description |
InteractableVehicle |
|
|
Improve this Doc
View Source
VehicleInstanceId
Declaration
public string VehicleInstanceId { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AddPassengerAsync(IEntity)
Declaration
public Task<bool> AddPassengerAsync(IEntity passenger)
Parameters
Type |
Name |
Description |
IEntity |
passenger |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
|
Improve this Doc
View Source
DestroyAsync()
Declaration
public Task DestroyAsync()
Returns
|
Improve this Doc
View Source
RemovePassengerAsync(IEntity)
Declaration
public Task<bool> RemovePassengerAsync(IEntity passenger)
Parameters
Type |
Name |
Description |
IEntity |
passenger |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
Implements
Extension Methods