24 lines
493 B
C#
24 lines
493 B
C#
|
namespace DunGen.Adapters
|
||
|
{
|
||
|
public abstract class NavMeshAdapter : BaseAdapter
|
||
|
{
|
||
|
public struct NavMeshGenerationProgress
|
||
|
{
|
||
|
public float Percentage;
|
||
|
|
||
|
public string Description;
|
||
|
}
|
||
|
|
||
|
public delegate void OnNavMeshGenerationProgress(NavMeshGenerationProgress progress);
|
||
|
|
||
|
public OnNavMeshGenerationProgress OnProgress;
|
||
|
|
||
|
protected override void Run(DungeonGenerator generator)
|
||
|
{
|
||
|
Generate(generator.CurrentDungeon);
|
||
|
}
|
||
|
|
||
|
public abstract void Generate(Dungeon dungeon);
|
||
|
}
|
||
|
}
|