Class MyFractureComponentBase
Fracture component adds fractures to entities. The component replaces renderer so the entity is responsible to restore it to original
when this component is removed and original state is needed (repaired blocks).
Inheritance
System.Object
MyFractureComponentBase
Assembly: Sandbox.Game.dll
Syntax
public abstract class MyFractureComponentBase : MyEntityComponentBase, IMyEntityComponentBase, IMyComponentBase
Constructors
MyFractureComponentBase()
Declaration
protected MyFractureComponentBase()
Fields
m_tmpChildren
Declaration
protected readonly List<HkdShapeInstanceInfo> m_tmpChildren
Field Value
Type |
Description |
System.Collections.Generic.List<Havok.HkdShapeInstanceInfo> |
|
m_tmpShapeInfos
Declaration
protected readonly List<HkdShapeInstanceInfo> m_tmpShapeInfos
Field Value
Type |
Description |
System.Collections.Generic.List<Havok.HkdShapeInstanceInfo> |
|
m_tmpShapeList
Declaration
protected readonly List<MyObjectBuilder_FractureComponentBase.FracturedShape> m_tmpShapeList
Field Value
Shape
Declaration
public HkdBreakableShape Shape
Field Value
Type |
Description |
Havok.HkdBreakableShape |
|
Properties
ComponentTypeDebugString
Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
PhysicalModelDefinition
Declaration
public abstract MyPhysicalModelDefinition PhysicalModelDefinition { get; }
Property Value
Methods
GetCurrentFracturedShapeList(List<MyObjectBuilder_FractureComponentBase.FracturedShape>, IEnumerable<String>)
Declaration
protected void GetCurrentFracturedShapeList(List<MyObjectBuilder_FractureComponentBase.FracturedShape> shapeList, IEnumerable<string> excludeShapeNames = null)
Parameters
IsSerialized()
Declaration
public override bool IsSerialized()
Returns
Type |
Description |
System.Boolean |
|
Overrides
OnAddedToContainer()
Declaration
public override void OnAddedToContainer()
Overrides
OnBeforeRemovedFromContainer()
Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape>)
Declaration
protected abstract void RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape> shapeList)
Parameters
RemoveChildShapes(IEnumerable<String>)
Declaration
public virtual bool RemoveChildShapes(IEnumerable<string> shapeNames)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
shapeNames |
|
Returns
Type |
Description |
System.Boolean |
|
SerializeInternal(MyObjectBuilder_FractureComponentBase)
Declaration
protected void SerializeInternal(MyObjectBuilder_FractureComponentBase ob)
Parameters
SetShape(HkdBreakableShape, Boolean)
Declaration
public virtual void SetShape(HkdBreakableShape shape, bool compound)
Parameters
Type |
Name |
Description |
Havok.HkdBreakableShape |
shape |
|
System.Boolean |
compound |
|
Extension Methods