Show / Hide Table of Contents

Class MyCharacterDetectorComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyCharacterComponent
MyCharacterDetectorComponent
MyCharacterRaycastDetectorComponent
MyCharacterShapecastDetectorComponent
Inherited Members
MyCharacterComponent.UpdateBeforeSimulation()
MyCharacterComponent.UpdateBeforeSimulationParallel()
MyCharacterComponent.Simulate()
MyCharacterComponent.UpdateAfterSimulation()
MyCharacterComponent.UpdateAfterSimulationParallel()
MyCharacterComponent.UpdateBeforeSimulation100()
MyCharacterComponent.NeedsUpdateAfterSimulation
MyCharacterComponent.NeedsUpdateAfterSimulationParallel
MyCharacterComponent.NeedsUpdateSimulation
MyCharacterComponent.NeedsUpdateAfterSimulation10
MyCharacterComponent.NeedsUpdateBeforeSimulation100
MyCharacterComponent.NeedsUpdateBeforeSimulation
MyCharacterComponent.NeedsUpdateBeforeSimulationParallel
MyCharacterComponent.Character
MyCharacterComponent.ComponentTypeDebugString
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.Entities.Character.Components
Assembly: Sandbox.Game.dll
Syntax
public abstract class MyCharacterDetectorComponent : MyCharacterComponent, IMyEntityComponentBase, IMyComponentBase

Constructors

MyCharacterDetectorComponent()

Declaration
protected MyCharacterDetectorComponent()

Fields

m_charHitInfo

Declaration
protected MyCharacterHitInfo m_charHitInfo
Field Value
Type Description
Sandbox.Game.Entities.Character.MyCharacterHitInfo

m_interactiveObject

Declaration
protected IMyUseObject m_interactiveObject
Field Value
Type Description
IMyUseObject

m_npcGridNotification

Declaration
protected MyHudNotification m_npcGridNotification
Field Value
Type Description
Sandbox.Game.Gui.MyHudNotification

Properties

DetectedEntity

Declaration
public IMyEntity DetectedEntity { get; protected set; }
Property Value
Type Description
IMyEntity

HitBody

Declaration
public HkRigidBody HitBody { get; protected set; }
Property Value
Type Description
Havok.HkRigidBody

HitMaterial

Declaration
public MyStringHash HitMaterial { get; protected set; }
Property Value
Type Description
MyStringHash

HitNormal

Declaration
public Vector3 HitNormal { get; protected set; }
Property Value
Type Description
Vector3

HitPosition

Declaration
public Vector3D HitPosition { get; protected set; }
Property Value
Type Description
Vector3D

HitTag

Declaration
public object HitTag { get; protected set; }
Property Value
Type Description
System.Object

ShapeKey

Declaration
public uint ShapeKey { get; protected set; }
Property Value
Type Description
System.UInt32

StartPosition

Declaration
public Vector3D StartPosition { get; protected set; }
Property Value
Type Description
Vector3D

UseObject

Declaration
public virtual IMyUseObject UseObject { get; protected set; }
Property Value
Type Description
IMyUseObject

Methods

DisableDetectors()

Declaration
protected static void DisableDetectors()

DoDetection(Boolean)

Declaration
protected abstract void DoDetection(bool useHead)
Parameters
Type Name Description
System.Boolean useHead

EnableDetectorsInArea(Vector3D)

Declaration
protected static void EnableDetectorsInArea(Vector3D from)
Parameters
Type Name Description
Vector3D from

HandleInteractiveObject(IMyUseObject)

Declaration
protected static void HandleInteractiveObject(IMyUseObject interactive)
Parameters
Type Name Description
IMyUseObject interactive

InteractiveObjectChanged()

Declaration
protected void InteractiveObjectChanged()

InteractiveObjectContinue()

Declaration
protected void InteractiveObjectContinue()

InteractiveObjectRemoved()

Declaration
protected void InteractiveObjectRemoved()

OnAddedToContainer()

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

OnBeforeRemovedFromContainer()

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

OnCharacterDead()

Declaration
public override void OnCharacterDead()
Overrides
MyCharacterComponent.OnCharacterDead()

OnDetectedEntityMarkForClose(IMyEntity)

Declaration
protected virtual void OnDetectedEntityMarkForClose(IMyEntity obj)
Parameters
Type Name Description
IMyEntity obj

OnRemovedFromScene()

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

RaiseObjectUsed()

Declaration
public void RaiseObjectUsed()

UpdateAfterSimulation10()

Declaration
public override void UpdateAfterSimulation10()
Overrides
MyCharacterComponent.UpdateAfterSimulation10()

UpdateInteractiveObjectNotification()

Declaration
public void UpdateInteractiveObjectNotification()

UseClose()

Declaration
protected void UseClose()

UseContinues()

Declaration
public void UseContinues()

Events

OnInteractiveObjectChanged

Declaration
public static event Action<IMyUseObject> OnInteractiveObjectChanged
Event Type
Type Description
System.Action<IMyUseObject>

OnInteractiveObjectUsed

Declaration
public static event Action<IMyUseObject> OnInteractiveObjectUsed
Event Type
Type Description
System.Action<IMyUseObject>

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