mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-14 03:19:56 +00:00
Abstracted the CDClient tables
There is now an option to utilize shared memory for some CDClient tables by adding `CD_PROVIDER_MEMORY=1` to the CMakeVariables.txt file. Allows masterconfig.ini to specify another run command for the world server, to allow for easier debugging through `valgrind`.
This commit is contained in:
@@ -38,4 +38,27 @@ public:
|
||||
\return The table name
|
||||
*/
|
||||
virtual std::string GetName() const = 0;
|
||||
|
||||
//! Loads the table into shared memory
|
||||
virtual void LoadHost() {};
|
||||
|
||||
//! Initalizes the table services
|
||||
static void Initalize();
|
||||
|
||||
//! Initalizes the table services as host
|
||||
static void InitalizeHost();
|
||||
|
||||
//! Get a string from a handle
|
||||
/*!
|
||||
\param handle The handle to get the string from
|
||||
\return The string
|
||||
*/
|
||||
static std::string GetString(size_t handle);
|
||||
|
||||
//! Set a string
|
||||
/*!
|
||||
\param value The string to set
|
||||
\return The handle to the string
|
||||
*/
|
||||
static size_t SetString(std::string value);
|
||||
};
|
||||
|
Reference in New Issue
Block a user