Table of Contents

Class BuildableContainer

Namespace
Uncreated.Warfare.Buildables
Assembly
Uncreated.Warfare.dll
public class BuildableContainer : MonoBehaviour, IComponentContainer<IBuildableComponent>, IComponentContainer, IManualOnDestroy
Inheritance
Object
Component
Behaviour
MonoBehaviour
BuildableContainer
Implements
IManualOnDestroy
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
Extension Methods

Properties

Buildable

public IBuildable Buildable { get; }

Property Value

IBuildable

CreateTime

public DateTime CreateTime { get; }

Property Value

DateTime

SignEditFrame

public FrameHandle SignEditFrame { get; }

Property Value

FrameHandle

SignEditor

public CSteamID SignEditor { get; set; }

Property Value

CSteamID

Methods

AddComponent(IBuildableComponent)

public void AddComponent(IBuildableComponent newComponent)

Parameters

newComponent IBuildableComponent

Component(Type)

Get the given component type from a list of components.

public object Component(Type t)

Parameters

t Type

Returns

object

Remarks

Always returns a value or throws an exception.

Exceptions

ComponentNotFoundException

Component not found.

ComponentOrNull(Type)

Get the given component type from a list of components.

public object? ComponentOrNull(Type t)

Parameters

t Type

Returns

object

ComponentOrNull<T>()

Get the given component type from a list of components.

public T? ComponentOrNull<T>() where T : class, IBuildableComponent

Returns

T

Type Parameters

T

Component<T>()

Get the given component type from a list of components.

public T Component<T>() where T : class, IBuildableComponent

Returns

T

Type Parameters

T

Remarks

Always returns a value or throws an exception.

Exceptions

ComponentNotFoundException

Component not found.

Get(BarricadeDrop)

public static BuildableContainer Get(BarricadeDrop barricade)

Parameters

barricade BarricadeDrop

Returns

BuildableContainer

Get(StructureDrop)

public static BuildableContainer Get(StructureDrop structure)

Parameters

structure StructureDrop

Returns

BuildableContainer

Get(IBuildable)

public static BuildableContainer Get(IBuildable buildable)

Parameters

buildable IBuildable

Returns

BuildableContainer

Transfer(IBuildable)

public BuildableContainer? Transfer(IBuildable newBuildable)

Parameters

newBuildable IBuildable

Returns

BuildableContainer