Table of Contents

Class VehicleSpawnerLayoutConfigurer

Namespace
Uncreated.Warfare.Vehicles.Spawners
Assembly
Uncreated.Warfare.dll
public class VehicleSpawnerLayoutConfigurer : ILayoutHostedService, IDisposable
Inheritance
VehicleSpawnerLayoutConfigurer
Implements
Inherited Members

Constructors

VehicleSpawnerLayoutConfigurer(IConfiguration, Layout, WarfareModule)

public VehicleSpawnerLayoutConfigurer(IConfiguration configuration, Layout layout, WarfareModule warfareModule)

Parameters

configuration IConfiguration
layout Layout
warfareModule WarfareModule

Properties

EnabledSpawnerLayouts

List of all vehicle spawners that are enabled along with their configuration.

public List<VehicleSpawnerLayoutConfiguration> EnabledSpawnerLayouts { get; }

Property Value

List<VehicleSpawnerLayoutConfiguration>

Methods

Dispose()

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

public void Dispose()

GetEnabledSpawnerNames()

public List<VehicleSpawnerLayoutConfiguration> GetEnabledSpawnerNames()

Returns

List<VehicleSpawnerLayoutConfiguration>

IsEnabledInLayout(VehicleSpawnInfo)

public bool IsEnabledInLayout(VehicleSpawnInfo vehicleSpawnInfo)

Parameters

vehicleSpawnInfo VehicleSpawnInfo

Returns

bool

StartAsync(CancellationToken)

Executes at the beginning of every game.

public UniTask StartAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

UniTask

StopAsync(CancellationToken)

Executes at the end of every game.

public UniTask StopAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

UniTask

TryGetSpawnerConfiguration(VehicleSpawnInfo, out VehicleSpawnerLayoutConfiguration?)

public bool TryGetSpawnerConfiguration(VehicleSpawnInfo vehicleSpawnInfo, out VehicleSpawnerLayoutConfiguration? configuration)

Parameters

vehicleSpawnInfo VehicleSpawnInfo
configuration VehicleSpawnerLayoutConfiguration

Returns

bool