Show / Hide Table of Contents

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
MyComponentBase
MyEntityComponentBase
MyFractureComponentBase
MyFractureComponentCubeBlock
Inherited Members
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.EntityComponents
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
Type Description
System.Collections.Generic.List<MyObjectBuilder_FractureComponentBase.FracturedShape>

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
MyEntityComponentBase.ComponentTypeDebugString

PhysicalModelDefinition

Declaration
public abstract MyPhysicalModelDefinition PhysicalModelDefinition { get; }
Property Value
Type Description
MyPhysicalModelDefinition

Methods

GetCurrentFracturedShapeList(List<MyObjectBuilder_FractureComponentBase.FracturedShape>, IEnumerable<String>)

Declaration
protected void GetCurrentFracturedShapeList(List<MyObjectBuilder_FractureComponentBase.FracturedShape> shapeList, IEnumerable<string> excludeShapeNames = null)
Parameters
Type Name Description
System.Collections.Generic.List<MyObjectBuilder_FractureComponentBase.FracturedShape> shapeList
System.Collections.Generic.IEnumerable<System.String> excludeShapeNames

IsSerialized()

Declaration
public override bool IsSerialized()
Returns
Type Description
System.Boolean
Overrides
MyComponentBase.IsSerialized()

OnAddedToContainer()

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

OnBeforeRemovedFromContainer()

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

RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape>)

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

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
Type Name Description
MyObjectBuilder_FractureComponentBase ob

SetShape(HkdBreakableShape, Boolean)

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

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