Show / Hide Table of Contents

Class MyMeteor.MyMeteorGameLogic

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyGameLogicComponent
MyEntityGameLogic
MyMeteor.MyMeteorGameLogic
Inherited Members
MyEntityGameLogic.m_entity
MyEntityGameLogic.Init(StringBuilder, String, MyEntity, Nullable<Single>, String)
MyEntityGameLogic.UpdatingStopped()
MyEntityGameLogic.UpdateBeforeSimulation10()
MyEntityGameLogic.UpdateAfterSimulation10()
MyEntityGameLogic.UpdateAfterSimulation100()
MyEntityGameLogic.CallAndClearOnClose()
MyEntityGameLogic.CallAndClearOnClosing()
MyEntityGameLogic.GameLogic
MyEntityGameLogic.OnMarkForClose
MyEntityGameLogic.OnClose
MyEntityGameLogic.OnClosing
MyGameLogicComponent.EntityUpdate
MyGameLogicComponent.NeedsUpdate
MyGameLogicComponent.Closed
MyGameLogicComponent.MarkedForClose
MyGameLogicComponent.ComponentTypeDebugString
MyGameLogicComponent.ModContext
MyEntityComponentBase.OnBeforeRemovedFromContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
public class MyMeteorGameLogic : MyEntityGameLogic, IMyEntityComponentBase, IMyComponentBase, IMyGameLogicComponent

Constructors

MyMeteorGameLogic()

Declaration
public MyMeteorGameLogic()

Fields

Item

Declaration
public MyPhysicalInventoryItem Item
Field Value
Type Description
MyPhysicalInventoryItem

Properties

Integrity

Declaration
public float Integrity { get; }
Property Value
Type Description
System.Single

VoxelMaterial

Declaration
public MyVoxelMaterialDefinition VoxelMaterial { get; set; }
Property Value
Type Description
MyVoxelMaterialDefinition

Methods

Close()

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

DoDamage(Single, MyStringHash, Boolean, Nullable<MyHitInfo>, Int64, Nullable<MyStringHash>)

Declaration
public void DoDamage(float damage, MyStringHash damageType, bool sync, Nullable<MyHitInfo> hitInfo, long attackerId, Nullable<MyStringHash> extraInfo = null)
Parameters
Type Name Description
System.Single damage
MyStringHash damageType
System.Boolean sync
System.Nullable<MyHitInfo> hitInfo
System.Int64 attackerId
System.Nullable<MyStringHash> extraInfo

GetObjectBuilder(Boolean)

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

GetPhysicsShape(HkMassProperties, Single, Single)

Declaration
protected virtual HkShape GetPhysicsShape(HkMassProperties massProperties, float mass, float scale)
Parameters
Type Name Description
Havok.HkMassProperties massProperties
System.Single mass
System.Single scale
Returns
Type Description
Havok.HkShape

Init(MyObjectBuilder_EntityBase)

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

MarkForClose()

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

OnAddedToContainer()

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

OnAddedToScene()

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

OnDestroy()

Declaration
public void OnDestroy()

UpdateAfterSimulation()

Declaration
public override void UpdateAfterSimulation()
Overrides
MyEntityGameLogic.UpdateAfterSimulation()

UpdateBeforeSimulation()

Declaration
public override void UpdateBeforeSimulation()
Overrides
MyEntityGameLogic.UpdateBeforeSimulation()

UpdateBeforeSimulation100()

Declaration
public override void UpdateBeforeSimulation100()
Overrides
MyEntityGameLogic.UpdateBeforeSimulation100()

UpdateOnceBeforeFrame()

Declaration
public override void UpdateOnceBeforeFrame()
Overrides
MyEntityGameLogic.UpdateOnceBeforeFrame()

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