Show / Hide Table of Contents

Class MyGameLogicComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyGameLogicComponent
MyEntityGameLogic
MyCompositeGameLogicComponent
MyIngameScriptComponent
MyTargetFocusComponent
MyNullGameLogicComponent
Inherited Members
MyEntityComponentBase.OnAddedToContainer()
MyEntityComponentBase.OnBeforeRemovedFromContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: VRage.Game.Components
Assembly: VRage.Game.dll
Syntax
public abstract class MyGameLogicComponent : MyEntityComponentBase, IMyEntityComponentBase, IMyComponentBase, IMyGameLogicComponent

Constructors

MyGameLogicComponent()

Declaration
protected MyGameLogicComponent()

Properties

Closed

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

ComponentTypeDebugString

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

EntityUpdate

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

MarkedForClose

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

ModContext

Returns the mod context this gamelogic belongs to. This can be passed to methods to read content from the mod's directory.

Declaration
public IMyModContext ModContext { get; }
Property Value
Type Description
IMyModContext

NeedsUpdate

Declaration
public MyEntityUpdateEnum NeedsUpdate { get; set; }
Property Value
Type Description
MyEntityUpdateEnum

Methods

Close()

Declaration
public virtual void Close()

GetObjectBuilder(Boolean)

Declaration
public virtual MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
Parameters
Type Name Description
System.Boolean copy
Returns
Type Description
MyObjectBuilder_EntityBase

Init(MyObjectBuilder_EntityBase)

Declaration
public virtual void Init(MyObjectBuilder_EntityBase objectBuilder)
Parameters
Type Name Description
MyObjectBuilder_EntityBase objectBuilder

MarkForClose()

Declaration
public virtual void MarkForClose()

UpdateAfterSimulation()

Declaration
public virtual void UpdateAfterSimulation()

UpdateAfterSimulation10()

Declaration
public virtual void UpdateAfterSimulation10()

UpdateAfterSimulation100()

Declaration
public virtual void UpdateAfterSimulation100()

UpdateBeforeSimulation()

Declaration
public virtual void UpdateBeforeSimulation()

UpdateBeforeSimulation10()

Declaration
public virtual void UpdateBeforeSimulation10()

UpdateBeforeSimulation100()

Declaration
public virtual void UpdateBeforeSimulation100()

UpdateOnceBeforeFrame()

Declaration
public virtual void UpdateOnceBeforeFrame()

UpdatingStopped()

Declaration
public virtual void UpdatingStopped()

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
☀
☾