This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nebolintegration_console_commands [2021/11/04 13:28] – nebol | nebolintegration_console_commands [2022/06/09 22:23] (current) – nebol | ||
---|---|---|---|
Line 2: | Line 2: | ||
NebolIntegration supports NebolCommand and has a built-in command set ready for use. | NebolIntegration supports NebolCommand and has a built-in command set ready for use. | ||
+ | |||
+ | NOTE: This functionality has been moved into its own class library: [[NebolIntegration.Console]] | ||
Use like this: | Use like this: | ||
Line 10: | Line 12: | ||
var commands = new Commands(engine, | var commands = new Commands(engine, | ||
- | Parser | + | var parser = new Parser(); |
// add the commands from the Commands class | // add the commands from the Commands class | ||
Line 28: | Line 30: | ||
</ | </ | ||
- | <code csharp> | + | Main loop: |
+ | <code csharp> | ||
var parser = SetupParser(); | var parser = SetupParser(); | ||
Line 44: | Line 47: | ||
parser.Parse(s); | parser.Parse(s); | ||
} | } | ||
- | |||
</ | </ | ||
+ | < | ||
public static void Quit() | public static void Quit() | ||
{ | { |