Changeset 5781 for code/trunk/src/libraries/core/LuaState.h
- Timestamp:
- Sep 24, 2009, 11:02:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/LuaState.h
r5774 r5781 45 45 namespace orxonox 46 46 { 47 //! Stores basic information about a File48 struct ResourceInfo49 {50 //! The file's fully qualified name51 std::string filename;52 //! Path name; separated by '/' and ending with '/'53 std::string path;54 //! Base filename55 std::string basename;56 };57 58 47 /** 59 48 @brief … … 67 56 ~LuaState(); 68 57 69 void doFile(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export58 void doFile(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export 70 59 void doString(const std::string& code, shared_ptr<ResourceInfo> sourceFileInfo = shared_ptr<ResourceInfo>()); 71 60 72 void includeFile(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export61 void includeFile(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export 73 62 void includeString(const std::string& code, shared_ptr<ResourceInfo> sourceFileInfo = shared_ptr<ResourceInfo>()); 74 63 75 64 void luaPrint(const std::string& str); // tolua_export 76 65 void luaLog(unsigned int level, const std::string& message); // tolua_export 77 bool fileExists(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export66 bool fileExists(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export 78 67 79 68 const std::stringstream& getOutput() const { return output_; } … … 89 78 90 79 private: 91 shared_ptr<ResourceInfo> getFileInfo(const std::string& filename, bool bSearchOtherPaths); 92 shared_ptr<ResourceInfo> getFileInfo(const std::string& filename); 93 std::string loadFile(const std::string& filename); 80 shared_ptr<ResourceInfo> getFileInfo(const std::string& filename, const std::string& resourceGroup, bool bSearchOtherPaths); 94 81 95 82 #if LUA_VERSION_NUM != 501
Note: See TracChangeset
for help on using the changeset viewer.