Show / Hide Table of Contents

Class MyTargetFocusComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyGameLogicComponent
MyTargetFocusComponent
Inherited Members
MyGameLogicComponent.UpdateOnceBeforeFrame()
MyGameLogicComponent.UpdateBeforeSimulation()
MyGameLogicComponent.UpdateBeforeSimulation10()
MyGameLogicComponent.UpdateBeforeSimulation100()
MyGameLogicComponent.UpdateAfterSimulation()
MyGameLogicComponent.UpdatingStopped()
MyGameLogicComponent.Init(MyObjectBuilder_EntityBase)
MyGameLogicComponent.GetObjectBuilder(Boolean)
MyGameLogicComponent.MarkForClose()
MyGameLogicComponent.Close()
MyGameLogicComponent.EntityUpdate
MyGameLogicComponent.NeedsUpdate
MyGameLogicComponent.Closed
MyGameLogicComponent.MarkedForClose
MyGameLogicComponent.ModContext
MyEntityComponentBase.OnAddedToContainer()
MyEntityComponentBase.OnBeforeRemovedFromContainer()
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.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.EntityComponents
Assembly: Sandbox.Game.dll
Syntax
[StaticEventOwner]
[MyComponentType]
[MyComponentBuilder]
public class MyTargetFocusComponent : MyGameLogicComponent, IMyEntityComponentBase, IMyComponentBase, IMyGameLogicComponent

Constructors

MyTargetFocusComponent()

Declaration
public MyTargetFocusComponent()

Properties

ComponentTypeDebugString

Declaration
public override string ComponentTypeDebugString { get; }
Property Value
Type Description
System.String
Overrides
MyGameLogicComponent.ComponentTypeDebugString

CurrentTarget

Declaration
public MyEntity CurrentTarget { get; }
Property Value
Type Description
MyEntity

FocusSearchMaxDistance

Declaration
public double FocusSearchMaxDistance { get; }
Property Value
Type Description
System.Double

FocusSearchMaxDistanceSquared

Declaration
public double FocusSearchMaxDistanceSquared { get; }
Property Value
Type Description
System.Double

GridId

Declaration
public Nullable<long> GridId { get; }
Property Value
Type Description
System.Nullable<System.Int64>

IsLocallyControlled

Declaration
public bool IsLocallyControlled { get; }
Property Value
Type Description
System.Boolean

IsTargetLockingEnabledInController

Declaration
public bool IsTargetLockingEnabledInController { get; }
Property Value
Type Description
System.Boolean

Methods

Init(MyComponentDefinitionBase)

Declaration
public override void Init(MyComponentDefinitionBase definition)
Parameters
Type Name Description
MyComponentDefinitionBase definition
Overrides
MyComponentBase.Init(MyComponentDefinitionBase)

IsSerialized()

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

IsTargetInRange(MatrixD, MyEntity, out Double, Boolean)

Declaration
public bool IsTargetInRange(MatrixD shooterMatrix, MyEntity target, out double targetCosSquaredSigned, bool checkAngle = true)
Parameters
Type Name Description
MatrixD shooterMatrix
MyEntity target
System.Double targetCosSquaredSigned
System.Boolean checkAngle
Returns
Type Description
System.Boolean

LookupSuperGridsInRange()

Declaration
public void LookupSuperGridsInRange()

OnLockRequest()

Declaration
public void OnLockRequest()

UpdateAfterSimulation10()

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

UpdateAfterSimulation100()

Declaration
public override void UpdateAfterSimulation100()
Overrides
MyGameLogicComponent.UpdateAfterSimulation100()

UpdateAimVector()

Declaration
public void UpdateAimVector()

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