47 #include "commands.h" |
47 #include "commands.h" |
48 |
48 |
49 // Where is the parser at? |
49 // Where is the parser at? |
50 enum parsermode { |
50 enum parsermode { |
51 MODE_TOPLEVEL, // at top level |
51 MODE_TOPLEVEL, // at top level |
52 MODE_EVENT // inside event definition |
52 MODE_EVENT, // inside event definition |
|
53 MODE_MAINLOOP, // inside mainloop |
|
54 MODE_ONENTER, // inside onenter |
|
55 MODE_ONEXIT, // inside onexit |
53 }; |
56 }; |
54 |
57 |
55 class ScriptReader { |
58 class ScriptReader { |
56 public: |
59 public: |
57 // ==================================================================== |
60 // ==================================================================== |