Init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user