Table of Contents

Class WarfareLifetimeComponent

Namespace
Uncreated.Warfare
Assembly
Uncreated.Warfare.dll

A component that is alive as long as the plugin is active.

[GenerateRpcSource]
[RpcGeneratedProxyType(TypeSetupMethodName = "__ModularRpcsGeneratedSetupStaticGeneratedProxy")]
public class WarfareLifetimeComponent : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
WarfareLifetimeComponent
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

Remarks

Can be used as the target for coroutines, UniTask functions, etc.

Properties

QueuedShutdownType

public ShutdownMode QueuedShutdownType { get; }

Property Value

ShutdownMode

ShutdownReason

public string? ShutdownReason { get; }

Property Value

string

ShutdownTime

public DateTime ShutdownTime { get; }

Property Value

DateTime

Methods

CancelShutdown()

[RpcReceive]
public void CancelShutdown()

GetShutdownReason()

[RpcReceive]
public string GetShutdownReason()

Returns

string

QueueShutdownAtLayoutEnd(string?)

[RpcReceive]
public void QueueShutdownAtLayoutEnd(string? shutdownReason = null)

Parameters

shutdownReason string

QueueShutdownInTime(TimeSpan, string?)

[RpcReceive]
public void QueueShutdownInTime(TimeSpan time, string? shutdownReason = null)

Parameters

time TimeSpan
shutdownReason string

QueueShutdownInstant(string?)

[RpcReceive]
public void QueueShutdownInstant(string? shutdownReason = null)

Parameters

shutdownReason string

SendShutdownUpdate(string, bool)

[RpcSend]
protected RpcTask SendShutdownUpdate(string str, bool isShuttingDownNow)

Parameters

str string
isShuttingDownNow bool

Returns

RpcTask