add documentation
This commit is contained in:
@@ -5,6 +5,9 @@ using UnityEngine;
|
||||
|
||||
namespace VoxelWorldScene
|
||||
{
|
||||
/// <summary>
|
||||
/// Combines the world generator's current stream target with scene spawn anchors into one interest feed for nav coverage.
|
||||
/// </summary>
|
||||
public sealed class SceneWorldInterestReader : IWorldInterestReader
|
||||
{
|
||||
private readonly VoxelWorldGenerator worldGenerator;
|
||||
@@ -16,8 +19,14 @@ namespace VoxelWorldScene
|
||||
this.worldGenerator = worldGenerator;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Mirrors the generator's interest version so downstream systems can invalidate cached plans when scene interest changes.
|
||||
/// </summary>
|
||||
public int InterestVersion => worldGenerator != null ? worldGenerator.InterestVersion : 0;
|
||||
|
||||
/// <summary>
|
||||
/// Appends both dynamic actor interest and static spawn-anchor interest into the supplied list.
|
||||
/// </summary>
|
||||
public void GetInterestPoints(List<WorldInterestPoint> results)
|
||||
{
|
||||
if (results == null)
|
||||
|
||||
Reference in New Issue
Block a user