Class MyGridTargeting
Inheritance
System.Object
MyGridTargeting
Assembly: Sandbox.Game.dll
Syntax
public class MyGridTargeting : MyEntityComponentBase, IMyEntityComponentBase, IMyComponentBase
Constructors
MyGridTargeting()
Declaration
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
ScanLock
Declaration
public FastResourceLock ScanLock { get; }
Property Value
Type |
Description |
VRage.FastResourceLock |
|
TargetBlocks
Declaration
public MyListDictionary<MyCubeGrid, MyEntity> TargetBlocks { get; }
Property Value
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
Returns
Type |
Description |
System.Boolean |
|
OnAddedToContainer()
Declaration
public override void OnAddedToContainer()
Overrides
OnBeforeRemovedFromContainer()
Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
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