Show / Hide Table of Contents

Class MyFractureComponentCubeBlock

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyFractureComponentBase
MyFractureComponentCubeBlock
Inherited Members
MyFractureComponentBase.m_tmpChildren
MyFractureComponentBase.m_tmpShapeInfos
MyFractureComponentBase.m_tmpShapeList
MyFractureComponentBase.Shape
MyFractureComponentBase.IsSerialized()
MyFractureComponentBase.GetCurrentFracturedShapeList(List<MyObjectBuilder_FractureComponentBase.FracturedShape>, IEnumerable<String>)
MyFractureComponentBase.SerializeInternal(MyObjectBuilder_FractureComponentBase)
MyFractureComponentBase.ComponentTypeDebugString
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.EntityComponents
Assembly: Sandbox.Game.dll
Syntax
[MyComponentBuilder]
public class MyFractureComponentCubeBlock : MyFractureComponentBase, IMyEntityComponentBase, IMyComponentBase

Constructors

MyFractureComponentCubeBlock()

Declaration
public MyFractureComponentCubeBlock()

Properties

Block

Declaration
public MySlimBlock Block { get; }
Property Value
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

MountPoints

Mountpoints rotated by block orientation.

Declaration
public MyCubeBlockDefinition.MountPoint[] MountPoints { get; }
Property Value
Type Description
MyCubeBlockDefinition.MountPoint[]

PhysicalModelDefinition

Declaration
public override MyPhysicalModelDefinition PhysicalModelDefinition { get; }
Property Value
Type Description
MyPhysicalModelDefinition
Overrides
MyFractureComponentBase.PhysicalModelDefinition

Methods

AddMountForShape(HkdBreakableShape, Matrix, ref BoundingBox, Single, List<MyCubeBlockDefinition.MountPoint>)

Declaration
public static HkdBreakableShape AddMountForShape(HkdBreakableShape shape, Matrix transform, ref BoundingBox blockBB, float gridSize, List<MyCubeBlockDefinition.MountPoint> outMountPoints)
Parameters
Type Name Description
Havok.HkdBreakableShape shape
Matrix transform
BoundingBox blockBB
System.Single gridSize
System.Collections.Generic.List<MyCubeBlockDefinition.MountPoint> outMountPoints
Returns
Type Description
Havok.HkdBreakableShape

Deserialize(MyObjectBuilder_ComponentBase)

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

GetIntegrityRatioFromFracturedPieceCounts()

Declaration
public float GetIntegrityRatioFromFracturedPieceCounts()
Returns
Type Description
System.Single

OnAddedToContainer()

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

OnBeforeRemovedFromContainer()

Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
MyFractureComponentBase.OnBeforeRemovedFromContainer()

OnCubeGridChanged()

Declaration
public void OnCubeGridChanged()

RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape>)

Declaration
protected override void RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape> shapeList)
Parameters
Type Name Description
System.Collections.Generic.List<MyObjectBuilder_FractureComponentBase.FracturedShape> shapeList
Overrides
MyFractureComponentBase.RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape>)

RemoveChildShapes(IEnumerable<String>)

Declaration
public override bool RemoveChildShapes(IEnumerable<string> shapeNames)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> shapeNames
Returns
Type Description
System.Boolean
Overrides
MyFractureComponentBase.RemoveChildShapes(IEnumerable<String>)

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)

SetShape(HkdBreakableShape, Boolean)

Declaration
public override void SetShape(HkdBreakableShape shape, bool compound)
Parameters
Type Name Description
Havok.HkdBreakableShape shape
System.Boolean compound
Overrides
MyFractureComponentBase.SetShape(HkdBreakableShape, Boolean)

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