Class UnitTargetPositionMarker
Inheritance
UnitTargetPositionMarker
Assembly: cs.temp.dll.dll
Syntax
public class UnitTargetPositionMarker : IMovementTargetPositionMarker
Constructors
UnitTargetPositionMarker(IGameManager, IMovementComponent)
Declaration
public UnitTargetPositionMarker(IGameManager gameMgr, IMovementComponent source)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IMovementComponent |
source |
|
Properties
AreasMask
Gets the layer ID of the marker.
Declaration
public TerrainAreaMask AreasMask { get; }
Property Value
Type |
Description |
TerrainAreaMask |
|
CurrSearchCell
Declaration
public SearchCell CurrSearchCell { get; }
Property Value
Type |
Description |
SearchCell |
|
Enabled
Gets whether the marker is enabled or not, a marker is only enabled when a unit uses it to reserve its target position.
Declaration
public bool Enabled { get; }
Property Value
gridSearchHandler
Declaration
protected IGridSearchHandler gridSearchHandler { get; }
Property Value
Type |
Description |
IGridSearchHandler |
|
Position
Gets the current position reserved by the marker.
Declaration
public Vector3 Position { get; }
Property Value
Radius
Gets the radius of the marker's reverse area.
Declaration
public float Radius { get; }
Property Value
Type |
Description |
System.Single |
|
RadiusSqrd
Declaration
public float RadiusSqrd { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
IsIn(Vector3)
Declaration
public bool IsIn(Vector3 testPosition)
Parameters
Type |
Name |
Description |
Vector3 |
testPosition |
|
Returns
Toggle(Boolean, Vector3)
Enables or disables the marker.
Declaration
public void Toggle(bool enable, Vector3 position = null)
Parameters
Type |
Name |
Description |
Boolean |
enable |
True to enable and false to disable the marker.
|
Vector3 |
position |
New Vector3 position for the marker in case it is enabled.
|
Implements