diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-14 01:34:47 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-14 01:34:47 +0200 |
commit | 41ba1a7642105ac21b67f4febac3eceef6a39f0a (patch) | |
tree | aec9b8bfcde7f1ad44e2cb28149a41a091f60465 /source/Plugin.h | |
parent | Better split of the fluid simulator functionality; removed the old LavaSimulator and WaterSimulator files. (diff) | |
download | cuberite-41ba1a7642105ac21b67f4febac3eceef6a39f0a.tar cuberite-41ba1a7642105ac21b67f4febac3eceef6a39f0a.tar.gz cuberite-41ba1a7642105ac21b67f4febac3eceef6a39f0a.tar.bz2 cuberite-41ba1a7642105ac21b67f4febac3eceef6a39f0a.tar.lz cuberite-41ba1a7642105ac21b67f4febac3eceef6a39f0a.tar.xz cuberite-41ba1a7642105ac21b67f4febac3eceef6a39f0a.tar.zst cuberite-41ba1a7642105ac21b67f4febac3eceef6a39f0a.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Plugin.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/source/Plugin.h b/source/Plugin.h index d88a26d4e..52508eb6a 100644 --- a/source/Plugin.h +++ b/source/Plugin.h @@ -28,7 +28,7 @@ class cCraftingRecipe; class cPlugin { public: - cPlugin(); + cPlugin( const AString & a_PluginDirectory ); virtual ~cPlugin(); virtual void OnDisable() {} @@ -70,18 +70,21 @@ public: int GetVersion() const { return m_Version; } void SetVersion( int a_Version ) { m_Version = a_Version; } + const AString & GetDirectory(void) const {return m_Directory; } + AString GetLocalDirectory(void) const; //tolua_export + struct CommandStruct { - std::string Command; - std::string Description; - std::string Permission; + AString Command; + AString Description; + AString Permission; }; void AddCommand(const AString & a_Command, const AString & a_Description, const AString & a_Permission); // tolua_end - typedef bool (FuncCommandHandler)( std::string & a_Command, std::vector< std::string > & a_Split ); - void BindCommand( FuncCommandHandler* a_Function, std::string & a_Command ); // >> EXPORTED IN MANUALBINDINGS << + typedef bool (FuncCommandHandler)( AString & a_Command, std::vector< std::string > & a_Split ); + void BindCommand( FuncCommandHandler* a_Function, AString & a_Command ); // >> EXPORTED IN MANUALBINDINGS << const std::vector< CommandStruct > & GetCommands() const { return m_Commands; } // >> EXPORTED IN MANUALBINDINGS << @@ -102,8 +105,10 @@ private: PluginLanguage m_Language; std::vector< CommandStruct > m_Commands; - std::string m_Name; + AString m_Name; int m_Version; + + AString m_Directory; }; //tolua_export |