Table of Contents

Class VehicleInfoStore

Namespace
Uncreated.Warfare.Vehicles.WarfareVehicles
Assembly
Uncreated.Warfare.dll
[Priority(-1)]
public class VehicleInfoStore : IHostedService, IDisposable, IUnlockRequirementProvider, IWhitelistExceptionProvider
Inheritance
VehicleInfoStore
Implements
Inherited Members

Constructors

VehicleInfoStore(WarfareModule, ILogger<VehicleInfoStore>)

public VehicleInfoStore(WarfareModule warfare, ILogger<VehicleInfoStore> logger)

Parameters

warfare WarfareModule
logger ILogger<VehicleInfoStore>

Properties

Vehicles

List of vehicles as configured based on the current map.

public IReadOnlyList<WarfareVehicleInfo> Vehicles { get; }

Property Value

IReadOnlyList<WarfareVehicleInfo>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetVehicleInfo(VehicleAsset?)

Finds the vehicle info associated with the given asset, if it exists.

public WarfareVehicleInfo? GetVehicleInfo(VehicleAsset? asset)

Parameters

asset VehicleAsset

Returns

WarfareVehicleInfo

GetVehicleInfo(Guid)

Finds the vehicle info associated with the given guid, if it exists.

public WarfareVehicleInfo? GetVehicleInfo(Guid guid)

Parameters

guid Guid

Returns

WarfareVehicleInfo

Finds the vehicle info associated with the given asset, if it exists.

public WarfareVehicleInfo? GetVehicleInfo(IAssetLink<VehicleAsset>? asset)

Parameters

asset IAssetLink<VehicleAsset>

Returns

WarfareVehicleInfo