C# Класс Pathfinding.LayerGridGraph

Наследование: GridGraph, IRaycastableGraph, IUpdatableGraph
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
nodeCellIndices int[]
nodes Pathfinding.LevelGridNode[]

Открытые методы

Метод Описание
AddLayers ( int count ) : void
AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
AddPortal ( LevelGridNode n1, LevelGridNode n2, List left, List right ) : void
BuildFunnelCorridor ( List path, int sIndex, int eIndex, List left, List right ) : void
CalculateConnections ( GraphNode nodes, GraphNode node, int x, int z, int layerIndex ) : void
CheckConnection ( LevelGridNode node, int dir ) : bool
DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
ErodeWalkableArea ( int xmin, int zmin, int xmax, int zmax ) : void
GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint = null ) : NNInfo
GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
GetNodes ( GraphNodeDelegateCancelable del ) : void
Linecast ( Vector3 _a, Vector3 _b ) : bool
Linecast ( Vector3 _a, Vector3 _b, GraphNode hint ) : bool
Linecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
OnDestroy ( ) : void
OnDrawGizmos ( bool drawNodes ) : void
PostDeserialization ( ) : void
RecalculateCell ( int x, int z, bool preserveExistingNodes ) : bool
RemoveGridGraphFromStatic ( ) : void
ScanInternal ( OnScanStatus status ) : void
SerializeExtraInfo ( GraphSerializationContext ctx ) : void
SnappedLinecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
UpdateArea ( GraphUpdateObject o ) : void
UpdatePenalty ( LevelGridNode node ) : void

Приватные методы

Метод Описание
GetNearestNode ( Vector3 position, int x, int z, NNConstraint constraint ) : LevelGridNode

Описание методов

AddLayers() публичный Метод

public AddLayers ( int count ) : void
count int
Результат void

AddPortal() публичный Метод

public AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
n1 GraphNode
n2 GraphNode
left List
right List
Результат void

AddPortal() публичный Метод

public AddPortal ( LevelGridNode n1, LevelGridNode n2, List left, List right ) : void
n1 LevelGridNode
n2 LevelGridNode
left List
right List
Результат void

BuildFunnelCorridor() публичный Метод

public BuildFunnelCorridor ( List path, int sIndex, int eIndex, List left, List right ) : void
path List
sIndex int
eIndex int
left List
right List
Результат void

CalculateConnections() публичный Метод

public CalculateConnections ( GraphNode nodes, GraphNode node, int x, int z, int layerIndex ) : void
nodes GraphNode
node GraphNode
x int
z int
layerIndex int
Результат void

CheckConnection() публичный Метод

public CheckConnection ( LevelGridNode node, int dir ) : bool
node LevelGridNode
dir int
Результат bool

DeserializeExtraInfo() публичный Метод

public DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
Результат void

ErodeWalkableArea() публичный Метод

public ErodeWalkableArea ( int xmin, int zmin, int xmax, int zmax ) : void
xmin int
zmin int
xmax int
zmax int
Результат void

GetNearest() публичный Метод

public GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint = null ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
hint GraphNode
Результат NNInfo

GetNearestForce() публичный Метод

public GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
Результат NNInfo

GetNodes() публичный Метод

public GetNodes ( GraphNodeDelegateCancelable del ) : void
del GraphNodeDelegateCancelable
Результат void

Linecast() публичный Метод

public Linecast ( Vector3 _a, Vector3 _b ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
Результат bool

Linecast() публичный Метод

public Linecast ( Vector3 _a, Vector3 _b, GraphNode hint ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
hint GraphNode
Результат bool

Linecast() публичный Метод

public Linecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
hint GraphNode
hit GraphHitInfo
Результат bool

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

OnDrawGizmos() публичный Метод

public OnDrawGizmos ( bool drawNodes ) : void
drawNodes bool
Результат void

PostDeserialization() публичный Метод

public PostDeserialization ( ) : void
Результат void

RecalculateCell() публичный Метод

public RecalculateCell ( int x, int z, bool preserveExistingNodes ) : bool
x int
z int
preserveExistingNodes bool
Результат bool

RemoveGridGraphFromStatic() публичный Метод

public RemoveGridGraphFromStatic ( ) : void
Результат void

ScanInternal() публичный Метод

public ScanInternal ( OnScanStatus status ) : void
status OnScanStatus
Результат void

SerializeExtraInfo() публичный Метод

public SerializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
Результат void

SnappedLinecast() публичный Метод

public SnappedLinecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
hint GraphNode
hit GraphHitInfo
Результат bool

UpdateArea() публичный Метод

public UpdateArea ( GraphUpdateObject o ) : void
o GraphUpdateObject
Результат void

UpdatePenalty() публичный Метод

public UpdatePenalty ( LevelGridNode node ) : void
node LevelGridNode
Результат void

Описание свойств

nodeCellIndices публичное свойство

public int[] nodeCellIndices
Результат int[]

nodes публичное свойство

public LevelGridNode[],Pathfinding nodes
Результат Pathfinding.LevelGridNode[]