Class VehicleSpawnerLayoutConfigurer
public class VehicleSpawnerLayoutConfigurer : ILayoutHostedService, IDisposable
- Inheritance
-
VehicleSpawnerLayoutConfigurer
- Implements
- Inherited Members
Constructors
VehicleSpawnerLayoutConfigurer(IConfiguration, Layout, WarfareModule)
public VehicleSpawnerLayoutConfigurer(IConfiguration configuration, Layout layout, WarfareModule warfareModule)
Parameters
configurationIConfigurationlayoutLayoutwarfareModuleWarfareModule
Properties
EnabledSpawnerLayouts
List of all vehicle spawners that are enabled along with their configuration.
public List<VehicleSpawnerLayoutConfiguration> EnabledSpawnerLayouts { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetEnabledSpawnerNames()
public List<VehicleSpawnerLayoutConfiguration> GetEnabledSpawnerNames()
Returns
IsEnabledInLayout(VehicleSpawnInfo)
public bool IsEnabledInLayout(VehicleSpawnInfo vehicleSpawnInfo)
Parameters
vehicleSpawnInfoVehicleSpawnInfo
Returns
StartAsync(CancellationToken)
Executes at the beginning of every game.
public UniTask StartAsync(CancellationToken token)
Parameters
tokenCancellationToken
Returns
- UniTask
StopAsync(CancellationToken)
Executes at the end of every game.
public UniTask StopAsync(CancellationToken token)
Parameters
tokenCancellationToken
Returns
- UniTask
TryGetSpawnerConfiguration(VehicleSpawnInfo, out VehicleSpawnerLayoutConfiguration?)
public bool TryGetSpawnerConfiguration(VehicleSpawnInfo vehicleSpawnInfo, out VehicleSpawnerLayoutConfiguration? configuration)
Parameters
vehicleSpawnInfoVehicleSpawnInfoconfigurationVehicleSpawnerLayoutConfiguration