Significantly improve NPC steering (#17931)

This commit is contained in:
metalgearsloth
2023-07-14 00:48:04 +10:00
committed by GitHub
parent 72f4560483
commit c43db830ea
7 changed files with 62 additions and 37 deletions

View File

@@ -17,7 +17,7 @@ public abstract class PathRequest
public Task<PathResult> Task => Tcs.Task;
public readonly TaskCompletionSource<PathResult> Tcs;
public Queue<PathPoly> Polys = new();
public List<PathPoly> Polys = new();
public bool Started = false;
@@ -103,9 +103,9 @@ public sealed class BFSPathRequest : PathRequest
public sealed class PathResultEvent
{
public PathResult Result;
public readonly Queue<PathPoly> Path;
public readonly List<PathPoly> Path;
public PathResultEvent(PathResult result, Queue<PathPoly> path)
public PathResultEvent(PathResult result, List<PathPoly> path)
{
Result = result;
Path = path;