diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-12 12:53:11 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-12 12:53:11 (GMT) |
| commit | ec6d1012b263049241984dfc96fae37f4280e7eb (patch) | |
| tree | ccd5196e7cb207dba032838dfb783dc438030f4c /src/cat/CommandInterface.h | |
| parent | d604fac18f611685f90c724ee84a7bc6c63da309 (diff) | |
| download | powder-ec6d1012b263049241984dfc96fae37f4280e7eb.zip powder-ec6d1012b263049241984dfc96fae37f4280e7eb.tar.gz | |
Somewhat working lua console, no element function overrides, no keyboard, mouse or tick events
Diffstat (limited to 'src/cat/CommandInterface.h')
| -rw-r--r-- | src/cat/CommandInterface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cat/CommandInterface.h b/src/cat/CommandInterface.h index 4f25600..32b685e 100644 --- a/src/cat/CommandInterface.h +++ b/src/cat/CommandInterface.h @@ -14,14 +14,14 @@ class GameModel; class CommandInterface { protected: - enum FormatType { FormatInt, FormatString, FormatChar, FormatFloat }; std::string lastError; GameModel * m; public: - CommandInterface(); + enum FormatType { FormatInt, FormatString, FormatChar, FormatFloat }; + CommandInterface(GameModel * m); int GetPropertyOffset(std::string key_, FormatType & format); int GetParticleType(std::string type); - void AttachGameModel(GameModel * m); + //void AttachGameModel(GameModel * m); virtual void Tick() {} virtual int Command(std::string command); virtual std::string FormatCommand(std::string command); |
