Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.49 KB

File metadata and controls

30 lines (24 loc) · 1.49 KB

MPath API Reference

Project Structure

MPath uses a single codebase for both Unity and .NET:

  • Core source code in src/mpath-unity-project/Packages/MPath/Source
  • .NET project links to this code via <Compile Include=""/> in the .csproj file
  • Unity-specific code in src/mpath-unity-project/Packages/MPath/Runtime

Classes and Interfaces

Type Description
Pathfinder Main class for performing pathfinding operations
PathResult Contains the results of pathfinding operations
Cell Represents a single cell in the pathfinding grid
Coordinate Represents a position in the grid
IAgent Interface for entities that need pathfinding
ICellHolder Interface for objects that hold cell data
IPathfinderSettings Interface for configuring pathfinding behavior
PathfinderSettings Default implementation of IPathfinderSettings
IPathCaching Interface for path caching functionality
DefaultPathCaching Default implementation of path caching

Unity-Specific Components

Type Description
ScriptablePathfinderSettings Unity ScriptableObject implementation of pathfinding settings
PathfindingExtensions Extension methods for Unity integration