Class VehicleSpawner
public class VehicleSpawner : IRequestable<VehicleSpawner>, IDisposable, ITranslationArgument
- Inheritance
-
VehicleSpawner
- Implements
- Inherited Members
- Extension Methods
Constructors
VehicleSpawner(VehicleSpawnInfo, WarfareVehicleInfo, ILoopTicker, IServiceProvider)
public VehicleSpawner(VehicleSpawnInfo spawnerInfo, WarfareVehicleInfo vehicleInfo, ILoopTicker updateTicker, IServiceProvider layoutServiceProvider)
Parameters
spawnerInfoVehicleSpawnInfovehicleInfoWarfareVehicleInfoupdateTickerILoopTickerlayoutServiceProviderIServiceProvider
Fields
EnemyIdleDistance
public const float EnemyIdleDistance = 40
Field Value
IdleDistance
public const float IdleDistance = 200
Field Value
Properties
Buildable
public IBuildable? Buildable { get; }
Property Value
Layout
public Layout? Layout { get; }
Property Value
LinkedVehicle
A vehicle that has been spawned from this spawn.
public InteractableVehicle? LinkedVehicle { get; }
Property Value
- InteractableVehicle
RequestTime
public DateTime RequestTime { get; }
Property Value
ServerSignText
public string ServerSignText { get; }
Property Value
Signs
public List<IBuildable> Signs { get; }
Property Value
SpawnInfo
public VehicleSpawnInfo SpawnInfo { get; }
Property Value
State
public VehicleSpawnerState State { get; }
Property Value
Team
public Team Team { get; }
Property Value
TeamLayoutRole
public LayoutRole TeamLayoutRole { get; }
Property Value
VehicleInfo
public WarfareVehicleInfo VehicleInfo { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
EndLinkingSign(WarfarePlayer)
public static VehicleSpawner? EndLinkingSign(WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
GetLayoutDelayTimeLeft()
public TimeSpan GetLayoutDelayTimeLeft()
Returns
GetLocation()
Gets the location displayed on the sign when in use.
public string GetLocation()
Returns
GetRespawnDueTime()
Gets the time until respawn shown on the sign.
public TimeSpan GetRespawnDueTime()
Returns
IsDelayed(out TimeSpan)
public bool IsDelayed(out TimeSpan timeLeft)
Parameters
timeLeftTimeSpan
Returns
IsEnabledInLayout()
public bool IsEnabledInLayout()
Returns
RespawnVehicle()
public void RespawnVehicle()
SoftReload(VehicleSpawnInfo, WarfareVehicleInfo)
public void SoftReload(VehicleSpawnInfo newSpawnerInfo, WarfareVehicleInfo newWarfareVehicle)
Parameters
newSpawnerInfoVehicleSpawnInfonewWarfareVehicleWarfareVehicleInfo
StartLinkingSign(VehicleSpawner, WarfarePlayer)
public static void StartLinkingSign(VehicleSpawner spawner, WarfarePlayer player)
Parameters
spawnerVehicleSpawnerplayerWarfarePlayer
ToDisplayString()
public string ToDisplayString()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Translate(ITranslationValueFormatter, in ValueFormatParameters)
Allows objects to define how they're translated in their own definition instead of creating a value converter.
public string Translate(ITranslationValueFormatter formatter, in ValueFormatParameters parameters)
Parameters
formatterITranslationValueFormatterparametersValueFormatParameters
Returns
TryDestroyLinkedVehicle()
public void TryDestroyLinkedVehicle()