Show / Hide Table of Contents

Class MyTargetLockingBlockComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyEventProxyEntityComponent
MyTargetLockingBlockComponent
Implements
IMyTargetLockingComponent
IMyDistanceToLockedTarget
Inherited Members
MyEventProxyEntityComponent.SyncType
MyEventProxyEntityComponent.AttachSyncToEntity
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.EntityComponents
Assembly: Sandbox.Game.dll
Syntax
[StaticEventOwner]
[MyComponentType]
[MyComponentBuilder]
public class MyTargetLockingBlockComponent : MyEventProxyEntityComponent, IMyEntityComponentBase, IMyComponentBase, IMyEventProxy, IMyEventOwner, IMyTargetLockingComponent, IMyDistanceToLockedTarget

Constructors

MyTargetLockingBlockComponent()

Declaration
public MyTargetLockingBlockComponent()

Properties

ComponentTypeDebugString

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

Definition

Declaration
public MyTargetLockingBlockComponentDefinition Definition { get; }
Property Value
Type Description
MyTargetLockingBlockComponentDefinition

DistanceToLockedTarget

Declaration
public float DistanceToLockedTarget { get; }
Property Value
Type Description
System.Single

IsLosingLock

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

IsTargetLocked

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

LockingProgressMilliseconds

Declaration
public float LockingProgressMilliseconds { get; }
Property Value
Type Description
System.Single

LockingProgressPercent

Declaration
public float LockingProgressPercent { get; }
Property Value
Type Description
System.Single

LockingTimeRemainingMilliseconds

Declaration
public float LockingTimeRemainingMilliseconds { get; }
Property Value
Type Description
System.Single

Target

Declaration
public MyCubeGrid Target { get; }
Property Value
Type Description
MyCubeGrid

TargetData

Declaration
public MyCharacter.MyTargetData TargetData { get; }
Property Value
Type Description
Sandbox.Game.Entities.Character.MyCharacter.MyTargetData

TargetEntity

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

Methods

Init(MyComponentDefinitionBase)

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

OnAddedToContainer()

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

OnBeforeRemovedFromContainer()

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

OnTargetInfoChanged(SyncBase)

Declaration
public void OnTargetInfoChanged(SyncBase obj)
Parameters
Type Name Description
VRage.Sync.SyncBase obj

OnTargetRequest(MyEntity)

Declaration
public void OnTargetRequest(MyEntity target)
Parameters
Type Name Description
MyEntity target

ReleaseTargetLock()

Declaration
public void ReleaseTargetLock()

Update()

Declaration
public void Update()

Events

DistanceToLockedTargetChanged

Declaration
public event Action<IMyDistanceToLockedTarget, float, float> DistanceToLockedTargetChanged
Event Type
Type Description
System.Action<IMyDistanceToLockedTarget, System.Single, System.Single>

Implements

IMyTargetLockingComponent
IMyDistanceToLockedTarget

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