Class BuildableContainer
- Namespace
- Uncreated.Warfare.Buildables
- Assembly
- Uncreated.Warfare.dll
public class BuildableContainer : MonoBehaviour, IComponentContainer<IBuildableComponent>, IComponentContainer, IManualOnDestroy
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourBuildableContainer
- Implements
-
IManualOnDestroy
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutBehaviour.enabledBehaviour.isActiveAndEnabledComponent.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.transformComponent.gameObjectComponent.tagObject.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.nameObject.hideFlags
- Extension Methods
Properties
Buildable
public IBuildable Buildable { get; }
Property Value
CreateTime
public DateTime CreateTime { get; }
Property Value
SignEditFrame
public FrameHandle SignEditFrame { get; }
Property Value
SignEditor
public CSteamID SignEditor { get; set; }
Property Value
- CSteamID
Methods
AddComponent(IBuildableComponent)
public void AddComponent(IBuildableComponent newComponent)
Parameters
newComponentIBuildableComponent
Component(Type)
Get the given component type from a list of components.
public object Component(Type t)
Parameters
tType
Returns
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
tType
Returns
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
barricadeBarricadeDrop
Returns
Get(StructureDrop)
public static BuildableContainer Get(StructureDrop structure)
Parameters
structureStructureDrop
Returns
Get(IBuildable)
public static BuildableContainer Get(IBuildable buildable)
Parameters
buildableIBuildable
Returns
Transfer(IBuildable)
public BuildableContainer? Transfer(IBuildable newBuildable)
Parameters
newBuildableIBuildable