Cyber/Assets/Scripts/Console/DebugConsoleAction.cs

18 lines
438 B
C#
Raw Normal View History

using System.Collections.Generic;
public class DebugConsoleAction {
public delegate void Action(List<string> command);
public readonly string Description;
private Action ActionFunc;
public DebugConsoleAction(string description, Action actionFunc) {
this.Description = description;
this.ActionFunc = actionFunc;
}
public void Call(List<string> command) {
ActionFunc(command);
}
}