Show / Hide Table of Contents

Class MyCompositeGameLogicComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyGameLogicComponent
MyCompositeGameLogicComponent
Inherited Members
MyGameLogicComponent.UpdateOnceBeforeFrame()
MyGameLogicComponent.UpdateBeforeSimulation()
MyGameLogicComponent.UpdateBeforeSimulation10()
MyGameLogicComponent.UpdateBeforeSimulation100()
MyGameLogicComponent.UpdateAfterSimulation()
MyGameLogicComponent.UpdateAfterSimulation10()
MyGameLogicComponent.UpdateAfterSimulation100()
MyGameLogicComponent.EntityUpdate
MyGameLogicComponent.NeedsUpdate
MyGameLogicComponent.Closed
MyGameLogicComponent.MarkedForClose
MyGameLogicComponent.ComponentTypeDebugString
MyGameLogicComponent.ModContext
MyEntityComponentBase.OnAddedToContainer()
MyEntityComponentBase.OnBeforeRemovedFromContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
MyComponentBase.FailedOnSceneAdd
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
public class MyCompositeGameLogicComponent : MyGameLogicComponent, IMyEntityComponentBase, IMyComponentBase, IMyGameLogicComponent

Methods

Add<T>(T)

Declaration
public void Add<T>(T component)
    where T : MyGameLogicComponent
Parameters
Type Name Description
T component
Type Parameters
Name Description
T

Close()

Declaration
public override void Close()
Overrides
MyGameLogicComponent.Close()

Create(ICollection<MyGameLogicComponent>, MyEntity)

Declaration
public static MyGameLogicComponent Create(ICollection<MyGameLogicComponent> logicComponents, MyEntity entity)
Parameters
Type Name Description
System.Collections.Generic.ICollection<MyGameLogicComponent> logicComponents
MyEntity entity
Returns
Type Description
MyGameLogicComponent

GetAs(String)

Declaration
public MyGameLogicComponent GetAs(string typeName)
Parameters
Type Name Description
System.String typeName
Returns
Type Description
MyGameLogicComponent

GetAs<T>()

Declaration
public override T GetAs<T>()
    where T : class
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides
MyComponentBase.GetAs<T>()

GetComponents()

Declaration
public IReadOnlyCollection<MyGameLogicComponent> GetComponents()
Returns
Type Description
System.Collections.Generic.IReadOnlyCollection<MyGameLogicComponent>

GetObjectBuilder(Boolean)

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

Init(MyComponentDefinitionBase)

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

Init(MyObjectBuilder_EntityBase)

Declaration
public override void Init(MyObjectBuilder_EntityBase objectBuilder)
Parameters
Type Name Description
MyObjectBuilder_EntityBase objectBuilder
Overrides
MyGameLogicComponent.Init(MyObjectBuilder_EntityBase)

MarkForClose()

Declaration
public override void MarkForClose()
Overrides
MyGameLogicComponent.MarkForClose()

OnAddedToScene()

Declaration
public override void OnAddedToScene()
Overrides
MyComponentBase.OnAddedToScene()

OnRemovedFromScene()

Declaration
public override void OnRemovedFromScene()
Overrides
MyComponentBase.OnRemovedFromScene()

Remove(String)

Declaration
public bool Remove(string typeName)
Parameters
Type Name Description
System.String typeName
Returns
Type Description
System.Boolean

Remove<T>(T)

Declaration
public bool Remove<T>(T component)
    where T : MyGameLogicComponent
Parameters
Type Name Description
T component
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T

UpdatingStopped()

Declaration
public override void UpdatingStopped()
Overrides
MyGameLogicComponent.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
☀
☾