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
warfareWarfareModuleloggerILogger<VehicleInfoStore>
Properties
Vehicles
List of vehicles as configured based on the current map.
public IReadOnlyList<WarfareVehicleInfo> Vehicles { get; }
Property Value
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
assetVehicleAsset
Returns
GetVehicleInfo(Guid)
Finds the vehicle info associated with the given guid, if it exists.
public WarfareVehicleInfo? GetVehicleInfo(Guid guid)
Parameters
guidGuid
Returns
GetVehicleInfo(IAssetLink<VehicleAsset>?)
Finds the vehicle info associated with the given asset, if it exists.
public WarfareVehicleInfo? GetVehicleInfo(IAssetLink<VehicleAsset>? asset)
Parameters
assetIAssetLink<VehicleAsset>