Files
ZooMatch-GP/Assets/Plugins/IngameDebugConsole/Scripts/Attributes/ConsoleAttribute.cs
T

21 lines
428 B
C#
Raw Normal View History

2026-06-02 10:26:44 +08:00
using System;
using System.Reflection;
namespace IngameDebugConsole
{
public abstract class ConsoleAttribute : Attribute
{
public MethodInfo Method { get; private set; }
public abstract int Order { get; }
public void SetMethod(MethodInfo method)
{
if (Method != null)
throw new Exception("Method was already initialized.");
Method = method;
}
public abstract void Load();
}
}