private int Command(IDiagCommandHost host, IEnumerable <string> args) { switch (args.First()) { case "/?": case "help": manager.UI.Echo("components add [list|now|wait:ms] {GameComponentName} {Constructor Params}"); manager.UI.Echo("Creating new instance of the named component."); manager.UI.Echo(" list Lists the possible component names. Use \"components help {Name}\" for further informations!"); manager.UI.Echo(" now Adds the new component immediately."); manager.UI.Echo(" wait Waits for the defined milliseconds before adding the new component."); manager.UI.Echo("components kill [now|wait:ms] {GameComponentID}"); break; case "add": switch (args.Skip(1).First()) { case "list": foreach (var type in _gameComponents) { manager.UI.Echo(type.Key); } break; case "now": break; case "wait": break; } break; case "kill": break; } return(0); }
private int Command(IDiagCommandHost host, IEnumerable<string> args) { switch (args.First()) { case "/?": case "help": manager.UI.Echo("components add [list|now|wait:ms] {GameComponentName} {Constructor Params}"); manager.UI.Echo("Creating new instance of the named component."); manager.UI.Echo(" list Lists the possible component names. Use \"components help {Name}\" for further informations!"); manager.UI.Echo(" now Adds the new component immediately."); manager.UI.Echo(" wait Waits for the defined milliseconds before adding the new component."); manager.UI.Echo("components kill [now|wait:ms] {GameComponentID}"); break; case "add": switch (args.Skip(1).First()) { case "list": foreach (var type in _gameComponents) { manager.UI.Echo(type.Key); } break; case "now": break; case "wait": break; } break; case "kill": break; } return 0; }