Show / Hide Table of Contents

Class MyAiBlockComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyAiBlockComponent
Implements
IMyAiBlockComponent
Inherited Members
MyEntityComponentBase.OnBeforeRemovedFromContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.EntityComponents
Assembly: Sandbox.Game.dll
Syntax
[MyComponentType]
[MyComponentBuilder]
public class MyAiBlockComponent : MyEntityComponentBase, IMyEntityComponentBase, IMyComponentBase, IMyAiBlockComponent, IMyTerminalControlsProviderComponent

Constructors

MyAiBlockComponent()

Declaration
public MyAiBlockComponent()

Properties

AiBlockType

Declaration
public MyAiBlockType AiBlockType { get; set; }
Property Value
Type Description
MyAiBlockType

ComponentTypeDebugString

Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type Description
System.String
Overrides
MyEntityComponentBase.ComponentTypeDebugString

HudErrorStringGetter

Declaration
public Func<string> HudErrorStringGetter { get; set; }
Property Value
Type Description
System.Func<System.String>

IsActivated

Declaration
public bool IsActivated { get; set; }
Property Value
Type Description
System.Boolean

TerminalControlCreationPriority

Declaration
public int TerminalControlCreationPriority { get; }
Property Value
Type Description
System.Int32

Methods

CreateTerminalControls<T>()

Declaration
public void CreateTerminalControls<T>()
    where T : MyTerminalBlock
Type Parameters
Name Description
T

Deactivate()

Declaration
public void Deactivate()

Deserialize(MyObjectBuilder_ComponentBase)

Declaration
public override void Deserialize(MyObjectBuilder_ComponentBase builder)
Parameters
Type Name Description
MyObjectBuilder_ComponentBase builder
Overrides
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)

Init(MyComponentDefinitionBase)

Declaration
public override void Init(MyComponentDefinitionBase definition)
Parameters
Type Name Description
MyComponentDefinitionBase definition
Overrides
MyComponentBase.Init(MyComponentDefinitionBase)

IsSerialized()

Declaration
public override bool IsSerialized()
Returns
Type Description
System.Boolean
Overrides
MyComponentBase.IsSerialized()

OnAddedToContainer()

Declaration
public override void OnAddedToContainer()
Overrides
MyEntityComponentBase.OnAddedToContainer()

Serialize(Boolean)

Declaration
public override MyObjectBuilder_ComponentBase Serialize(bool copy = false)
Parameters
Type Name Description
System.Boolean copy
Returns
Type Description
MyObjectBuilder_ComponentBase
Overrides
MyComponentBase.Serialize(Boolean)

Events

OnActivatedChanged

Declaration
public event Action OnActivatedChanged
Event Type
Type Description
System.Action

Implements

IMyAiBlockComponent

Extension Methods

MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.UnregisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾