Table of Contents

Class DeploymentComponent

Namespace
Uncreated.Warfare.FOBs.Deployment
Assembly
Uncreated.Warfare.dll
public class DeploymentComponent : MonoBehaviour, IPlayerComponent, IEventListener<PlayerDied>
Inheritance
Object
Component
Behaviour
MonoBehaviour
DeploymentComponent
Implements
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Properties

CurrentDeployment

public IDeployable? CurrentDeployment { get; }

Property Value

IDeployable

DeploymentTimeLeft

public TimeSpan DeploymentTimeLeft { get; }

Property Value

TimeSpan

Player

public WarfarePlayer Player { get; }

Property Value

WarfarePlayer

Methods

CancelDeployment(bool)

public void CancelDeployment(bool chat)

Parameters

chat bool

GetTimeDeployed()

public TimeSpan GetTimeDeployed()

Returns

TimeSpan

Init(IServiceProvider, bool)

This function is called on player join and after every layout starts (to re-initialize scoped services).

public void Init(IServiceProvider serviceProvider, bool isOnJoin)

Parameters

serviceProvider IServiceProvider
isOnJoin bool

The player just joined and this isn't called as the result of a new layout.

TryStartDeployment(IDeployable, DeploySettings)

public bool TryStartDeployment(IDeployable location, DeploySettings settings = default)

Parameters

location IDeployable
settings DeploySettings

Returns

bool