summaryrefslogtreecommitdiff
path: root/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/Editor/CustomGraphEditorAttribute.cs
blob: 614c66caf8cad745fe12f3846136fe404b2c3461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
		}
	}
}