Show / Hide Table of Contents

Class MyGridTargeting

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyGridTargeting
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.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.EntityComponents
Assembly: Sandbox.Game.dll
Syntax
public class MyGridTargeting : MyEntityComponentBase, IMyEntityComponentBase, IMyComponentBase

Constructors

MyGridTargeting()

Declaration
public MyGridTargeting()

Fields

AllowScanning

Declaration
public bool AllowScanning
Field Value
Type Description
System.Boolean

Properties

ComponentTypeDebugString

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

ScanLock

Declaration
public FastResourceLock ScanLock { get; }
Property Value
Type Description
VRage.FastResourceLock

TargetBlocks

Declaration
public MyListDictionary<MyCubeGrid, MyEntity> TargetBlocks { get; }
Property Value
Type Description
VRage.Library.Collections.MyListDictionary<MyCubeGrid, MyEntity>

Methods

GetTargetRoots(Boolean, Boolean, Boolean, List<MyEntity>)

Declaration
public void GetTargetRoots(bool enemies, bool neutrals, bool friends, List<MyEntity> buffer)
Parameters
Type Name Description
System.Boolean enemies
System.Boolean neutrals
System.Boolean friends
System.Collections.Generic.List<MyEntity> buffer

IsTargetLocked(MyEntity)

Declaration
public bool IsTargetLocked(MyEntity target)
Parameters
Type Name Description
MyEntity target
Returns
Type Description
System.Boolean

OnAddedToContainer()

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

OnBeforeRemovedFromContainer()

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

RescanIfNeeded()

Declaration
public void RescanIfNeeded()

SetLockedGridsOrCharacters(ICollection<Int64>)

Declaration
public void SetLockedGridsOrCharacters(ICollection<long> lockedGrids)
Parameters
Type Name Description
System.Collections.Generic.ICollection<System.Int64> lockedGrids

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