diff --git a/src/DotRecast.Recast.Demo/RecastDemo.cs b/src/DotRecast.Recast.Demo/RecastDemo.cs index b018645..ace6c8b 100644 --- a/src/DotRecast.Recast.Demo/RecastDemo.cs +++ b/src/DotRecast.Recast.Demo/RecastDemo.cs @@ -382,6 +382,7 @@ public class RecastDemo : IRecastDemoChannel toolset = new RcToolsetView( new TestNavmeshTool(), + new TileTool(), new OffMeshConnectionTool(), new ConvexVolumeTool(), new CrowdTool(), diff --git a/src/DotRecast.Recast.Demo/Tools/TileTool.cs b/src/DotRecast.Recast.Demo/Tools/TileTool.cs new file mode 100644 index 0000000..56a5acb --- /dev/null +++ b/src/DotRecast.Recast.Demo/Tools/TileTool.cs @@ -0,0 +1,45 @@ +using DotRecast.Core; +using DotRecast.Recast.Demo.Draw; +using DotRecast.Recast.DemoTool; +using DotRecast.Recast.DemoTool.Tools; + +namespace DotRecast.Recast.Demo.Tools; + +public class TileTool : IRcTool +{ + private readonly TileToolImpl _impl; + + public TileTool() + { + _impl = new(); + } + + public ISampleTool GetTool() + { + return _impl; + } + + public void OnSampleChanged() + { + } + + public void Layout() + { + } + + public void HandleClick(RcVec3f s, RcVec3f p, bool shift) + { + } + + public void HandleRender(NavMeshRenderer renderer) + { + } + + public void HandleUpdate(float dt) + { + } + + public void HandleClickRay(RcVec3f start, RcVec3f direction, bool shift) + { + } +} \ No newline at end of file diff --git a/src/DotRecast.Recast.DemoTool/Tools/CrowdToolImpl.cs b/src/DotRecast.Recast.DemoTool/Tools/CrowdToolImpl.cs index 363c412..0838d2c 100644 --- a/src/DotRecast.Recast.DemoTool/Tools/CrowdToolImpl.cs +++ b/src/DotRecast.Recast.DemoTool/Tools/CrowdToolImpl.cs @@ -2,12 +2,13 @@ { public class CrowdToolImpl : ISampleTool { + private Sample _sample; + public string GetName() { - return "Crowd"; + return "Create Crowd"; } - private Sample _sample; public void SetSample(Sample sample) { _sample = sample; diff --git a/src/DotRecast.Recast.DemoTool/Tools/TileToolImpl.cs b/src/DotRecast.Recast.DemoTool/Tools/TileToolImpl.cs new file mode 100644 index 0000000..ea9a936 --- /dev/null +++ b/src/DotRecast.Recast.DemoTool/Tools/TileToolImpl.cs @@ -0,0 +1,22 @@ +namespace DotRecast.Recast.DemoTool.Tools +{ + public class TileToolImpl : ISampleTool + { + private Sample _sample; + + public string GetName() + { + return "Create Tiles"; + } + + public void SetSample(Sample sample) + { + _sample = sample; + } + + public Sample GetSample() + { + return _sample; + } + } +} \ No newline at end of file