Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | List of all members
Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock Class Reference
Inheritance diagram for Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock:
Sandbox.Game.EntityComponents.MyFractureComponentBase VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
override MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
override void Deserialize (MyObjectBuilder_ComponentBase builder)
 
override void SetShape (HkdBreakableShape shape, bool compound)
 
override bool RemoveChildShapes (string[] shapeNames)
 
void OnCubeGridChanged ()
 
float GetIntegrityRatioFromFracturedPieceCounts ()
 
- Public Member Functions inherited from Sandbox.Game.EntityComponents.MyFractureComponentBase
override bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 
bool RemoveChildShapes (List< string > shapeNames)
 Removes child shapes with given names. More...
 
- Public Member Functions inherited from VRage.Game.Components.MyEntityComponentBase
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
- Public Member Functions inherited from VRage.Game.Components.MyComponentBase
virtual void SetContainer (MyComponentContainer container)
 Sets the container of this component. Note that the component is not added to the container here! Therefore, use MyComponentContainer.Add(...) method and it will in turn call this method. Actually, you should seldom have the need to call this method yourself. More...
 
virtual T GetAs< T > ()
 
virtual void OnAddedToScene ()
 CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! More...
 
virtual void OnRemovedFromScene ()
 CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene! More...
 
virtual void Init (MyComponentDefinitionBase definition)
 

Static Public Member Functions

static HkdBreakableShape AddMountForShape (HkdBreakableShape shape, Matrix transform, ref BoundingBox blockBB, float gridSize, List< MyCubeBlockDefinition.MountPoint > outMountPoints)
 

Protected Member Functions

override void RecreateShape (List< MyObjectBuilder_FractureComponentBase.FracturedShape > shapeList)
 
- Protected Member Functions inherited from Sandbox.Game.EntityComponents.MyFractureComponentBase
void GetCurrentFracturedShapeList (List< MyObjectBuilder_FractureComponentBase.FracturedShape > shapeList, string[] excludeShapeNames=null)
 
void SerializeInternal (MyObjectBuilder_FractureComponentBase ob)
 

Properties

MySlimBlock Block [get]
 
List< MyCubeBlockDefinition.MountPointMountPoints [get]
 Mountpoints rotated by block orientation. More...
 
override MyPhysicalModelDefinition PhysicalModelDefinition [get]
 
- Properties inherited from Sandbox.Game.EntityComponents.MyFractureComponentBase
abstract MyPhysicalModelDefinition PhysicalModelDefinition [get]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from VRage.Game.Components.MyEntityComponentBase
MyEntityComponentContainer Container [get]
 
IMyEntity Entity [get]
 
abstract string ComponentTypeDebugString [get]
 Name of the base component type for debug purposes (e.g.: "Position") More...
 
- Properties inherited from VRage.Game.Components.MyComponentBase
MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 

Additional Inherited Members

- Public Attributes inherited from Sandbox.Game.EntityComponents.MyFractureComponentBase
HkdBreakableShape Shape
 
- Protected Attributes inherited from Sandbox.Game.EntityComponents.MyFractureComponentBase
readonly List< HkdShapeInstanceInfo > m_tmpChildren = new List<HkdShapeInstanceInfo>()
 
readonly List< HkdShapeInstanceInfo > m_tmpShapeInfos = new List<HkdShapeInstanceInfo>()
 
readonly List< MyObjectBuilder_FractureComponentBase.FracturedShapem_tmpShapeList = new List<MyObjectBuilder_FractureComponentBase.FracturedShape>()
 
- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 26 of file MyFractureComponentCubeBlock.cs.

Member Function Documentation

static HkdBreakableShape Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.AddMountForShape ( HkdBreakableShape  shape,
Matrix  transform,
ref BoundingBox  blockBB,
float  gridSize,
List< MyCubeBlockDefinition.MountPoint outMountPoints 
)
inlinestatic

Definition at line 357 of file MyFractureComponentCubeBlock.cs.

override void Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.Deserialize ( MyObjectBuilder_ComponentBase  builder)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 90 of file MyFractureComponentCubeBlock.cs.

float Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.GetIntegrityRatioFromFracturedPieceCounts ( )
inline

Definition at line 417 of file MyFractureComponentCubeBlock.cs.

override void Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.OnAddedToContainer ( )
inlinevirtual

Gets called after the container of this component changes

Reimplemented from Sandbox.Game.EntityComponents.MyFractureComponentBase.

Definition at line 46 of file MyFractureComponentCubeBlock.cs.

override void Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.OnBeforeRemovedFromContainer ( )
inlinevirtual

Gets called before the removal of this component from a container

Reimplemented from Sandbox.Game.EntityComponents.MyFractureComponentBase.

Definition at line 64 of file MyFractureComponentCubeBlock.cs.

void Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.OnCubeGridChanged ( )
inline

Definition at line 158 of file MyFractureComponentCubeBlock.cs.

override void Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.RecreateShape ( List< MyObjectBuilder_FractureComponentBase.FracturedShape shapeList)
inlineprotectedvirtual
override bool Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.RemoveChildShapes ( string[]  shapeNames)
inlinevirtual
override MyObjectBuilder_ComponentBase Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.Serialize ( bool  copy = false)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 81 of file MyFractureComponentCubeBlock.cs.

override void Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.SetShape ( HkdBreakableShape  shape,
bool  compound 
)
inlinevirtual

Property Documentation

MySlimBlock Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.Block
get

Definition at line 30 of file MyFractureComponentCubeBlock.cs.

List<MyCubeBlockDefinition.MountPoint> Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.MountPoints
get

Mountpoints rotated by block orientation.

Definition at line 35 of file MyFractureComponentCubeBlock.cs.

override MyPhysicalModelDefinition Sandbox.Game.EntityComponents.MyFractureComponentCubeBlock.PhysicalModelDefinition
get

Definition at line 41 of file MyFractureComponentCubeBlock.cs.


The documentation for this class was generated from the following file: