Interface IGridSearchHandler
Assembly: cs.temp.dll.dll
Syntax
public interface IGridSearchHandler : IPreRunGameService, IMonoBehaviour
Properties
CellSize
Declaration
Property Value
Methods
FindNeighborCells(Int2D)
Declaration
IEnumerable<SearchCell> FindNeighborCells(Int2D sourcePosition)
Parameters
Type |
Name |
Description |
Int2D |
sourcePosition |
|
Returns
IsPositionReserved(Vector3, Single, TerrainAreaMask, Boolean, IMovementTargetPositionMarker)
Declaration
ErrorMessage IsPositionReserved(Vector3 testPosition, float radius, TerrainAreaMask areasMask, bool playerCommand, IMovementTargetPositionMarker ignoreMarker = null)
Parameters
Type |
Name |
Description |
Vector3 |
testPosition |
|
System.Single |
radius |
|
TerrainAreaMask |
areasMask |
|
Boolean |
playerCommand |
|
IMovementTargetPositionMarker |
ignoreMarker |
|
Returns
Search<T>(Vector3, FloatRange, RTSHelper.IsTargetValidDelegate, Boolean, out T, Boolean)
Declaration
ErrorMessage Search<T>(Vector3 sourcePosition, FloatRange radius, RTSHelper.IsTargetValidDelegate IsTargetValid, bool playerCommand, out T potentialTarget, bool findClosest = true)
where T : IEntity
Parameters
Returns
Type Parameters
Search<T>(Vector3, Single, RTSHelper.IsTargetValidDelegate, Boolean, out T, Boolean)
Declaration
ErrorMessage Search<T>(Vector3 sourcePosition, float radius, RTSHelper.IsTargetValidDelegate IsTargetValid, bool playerCommand, out T potentialTarget, bool findClosest = true)
where T : IEntity
Parameters
Returns
Type Parameters
Search<T>(Vector3, Single, Int32, RTSHelper.IsTargetValidDelegate, Boolean, out IReadOnlyList<T>, Boolean)
Declaration
ErrorMessage Search<T>(Vector3 sourcePosition, float radius, int amount, RTSHelper.IsTargetValidDelegate IsTargetValid, bool playerCommand, out IReadOnlyList<T> potentialTargets, bool findClosest = true)
where T : IEntity
Parameters
Returns
Type Parameters
SearchVisible<T>(RTSHelper.IsTargetValidDelegate, Boolean, out IReadOnlyList<T>)
Declaration
ErrorMessage SearchVisible<T>(RTSHelper.IsTargetValidDelegate IsTargetValid, bool playerCommand, out IReadOnlyList<T> targets)
where T : IEntity
Parameters
Returns
Type Parameters
TryGetSearchCell(Vector3, out SearchCell)
Declaration
ErrorMessage TryGetSearchCell(Vector3 position, out SearchCell cell)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
SearchCell |
cell |
|
Returns