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