mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-06-11 04:35:39 +00:00
27 lines
451 B
C++
27 lines
451 B
C++
#pragma once
|
|
|
|
#include "CDTable.h"
|
|
|
|
#include "Singleton.h"
|
|
|
|
#define UNUSED_TABLE(v)
|
|
|
|
/**
|
|
* Initialize the CDClient tables so they are all loaded into memory.
|
|
*/
|
|
namespace CDClientManager {
|
|
void LoadValuesFromDatabase();
|
|
void LoadValuesFromDefaults();
|
|
|
|
/**
|
|
* Fetch a table from CDClient
|
|
*
|
|
* @tparam Table type to fetch
|
|
* @return A pointer to the requested table.
|
|
*/
|
|
template<typename T>
|
|
T* GetTable() {
|
|
return &T::Instance();
|
|
}
|
|
};
|