Changeset 996 for code/branches/script/src/orxonox/script/Script.h
- Timestamp:
- Apr 5, 2008, 9:47:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/script/src/orxonox/script/Script.h
r956 r996 1 1 /** 2 2 @file script.h 3 @brief Representation of a lua script3 @brief Representation of an interface to lua 4 4 @author Benjamin Knecht <beni_at_orxonox.net> 5 5 */ … … 15 15 #include <string> 16 16 17 namespace orxonox 18 { 17 namespace orxonox // tolua_export 18 { // tolua_export 19 19 20 class Script 21 { 22 Script(); 20 class Script // tolua_export 21 { // tolua_export 22 public: 23 Script(); // tolua_export 23 24 ~Script(); 24 25 25 void loadFile(std::string filename); 26 void xmlToLua(); 26 static void loadFile(std::string filename, bool luaTags); 27 static void init(lua_State *state_); 28 //void xmlToLua(); 29 static void run(); 30 void luaPrint(std::string str); // tolua_export 27 31 28 inline lua_State* getLuaState() { return state_; }; 32 inline static lua_State* getLuaState() { return luaState_; }; 33 inline static std::string* getFileString() { return &fileString_; }; 34 35 static unsigned int getNextQuote(const std::string& text, unsigned int start); 36 static std::string replaceLuaTags(const std::string& text); 29 37 30 38 private: … … 32 40 //std::list<std::string>& getLevelFileLines(); 33 41 34 st d::list<std::string> fileLines_;35 lua_State* state_;42 static std::string fileString_; 43 static lua_State* luaState_; 36 44 37 }; 38 } 45 }; // tolua_export 46 } // tolua_export 39 47 #endif /* _Script_H__ */
Note: See TracChangeset
for help on using the changeset viewer.