[Player] Add AI Pathfinding on a 2D grid to the player character

This commit is contained in:
Michal Pikulski
2025-09-02 11:42:25 +02:00
parent 3d3b72f04d
commit e53b5a0034
663 changed files with 148320 additions and 66 deletions

View File

@@ -0,0 +1,19 @@
namespace Pathfinding {
/// <summary>Added to editors of custom graph types</summary>
[System.AttributeUsage(System.AttributeTargets.All, Inherited = false, AllowMultiple = true)]
public class CustomGraphEditorAttribute : System.Attribute {
/// <summary>Graph type which this is an editor for</summary>
public System.Type graphType;
/// <summary>Name displayed in the inpector</summary>
public string displayName;
/// <summary>Type of the editor for the graph</summary>
public System.Type editorType;
public CustomGraphEditorAttribute (System.Type t, string displayName) {
graphType = t;
this.displayName = displayName;
}
}
}