Table of Contents

Class BunkerFob

Namespace
Uncreated.Warfare.FOBs
Assembly
Uncreated.Warfare.dll
public class BunkerFob : ResourceFob, IResourceFob, IDisposable, IFobStrategyMapTackHandler, IDamageableFob, IBuildableFob, IFob, IDeployable, ITranslationArgument, ITransformObject
Inheritance
BunkerFob
Implements
Inherited Members
Extension Methods

Constructors

BunkerFob(IServiceProvider, string, IBuildable)

public BunkerFob(IServiceProvider serviceProvider, string name, IBuildable buildable)

Parameters

serviceProvider IServiceProvider
name string
buildable IBuildable

Properties

Creator

public CSteamID Creator { get; }

Property Value

CSteamID

DamageTracker

public DamageTracker DamageTracker { get; }

Property Value

DamageTracker

HasBeenRebuilt

public bool HasBeenRebuilt { get; }

Property Value

bool

IsBuilt

public bool IsBuilt { get; }

Property Value

bool

Methods

CheckDeployableToTick(WarfarePlayer, ChatService, DeploymentTranslations, in DeploySettings)

Periodic checks over time to see if a player can deploy to the location. This also runs just before the teleport.

public override bool CheckDeployableToTick(WarfarePlayer player, ChatService chatService, DeploymentTranslations translations, in DeploySettings settings)

Parameters

player WarfarePlayer
chatService ChatService
translations DeploymentTranslations
settings DeploySettings

Returns

bool

CreateMapTack(StrategyMap, AssetConfiguration)

protected virtual MapTack? CreateMapTack(StrategyMap map, AssetConfiguration assetConfig)

Parameters

map StrategyMap
assetConfig AssetConfiguration

Returns

MapTack

GetColor(Team)

Gets the display color of this FOB on the FOB list.

public override Color32 GetColor(Team viewer)

Parameters

viewer Team

Returns

Color32

GetDelay(WarfarePlayer)

Get the deployment delay in seconds.

public override TimeSpan GetDelay(WarfarePlayer player)

Parameters

player WarfarePlayer

Returns

TimeSpan

MarkBuilt(IBuildable)

public void MarkBuilt(IBuildable newBuildable)

Parameters

newBuildable IBuildable

MarkUnbuilt(IBuildable)

public void MarkUnbuilt(IBuildable newBuildable)

Parameters

newBuildable IBuildable

OnDeployTo(WarfarePlayer, in DeploySettings)

protected override void OnDeployTo(WarfarePlayer player, in DeploySettings settings)

Parameters

player WarfarePlayer
settings DeploySettings