mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
dc29f5962d
Tested that worlds still load data as expected. Had no use being a singleton anyways.
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();
|
|
}
|
|
};
|