2017-05-07 21:44:35 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
public class DebugConsoleAction {
|
2017-05-08 01:29:12 +02:00
|
|
|
|
public delegate void Action(List<string> command);
|
|
|
|
|
public readonly string Description;
|
2017-05-07 21:44:35 +02:00
|
|
|
|
|
|
|
|
|
private Action ActionFunc;
|
|
|
|
|
|
|
|
|
|
public DebugConsoleAction(string description, Action actionFunc) {
|
|
|
|
|
this.Description = description;
|
|
|
|
|
this.ActionFunc = actionFunc;
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-08 01:29:12 +02:00
|
|
|
|
public void Call(List<string> command) {
|
|
|
|
|
ActionFunc(command);
|
2017-05-07 21:44:35 +02:00
|
|
|
|
}
|
|
|
|
|
}
|