DarkflameServer/dDatabase/CDClientDatabase/CDClientManager.h

27 lines
447 B
C
Raw Permalink Normal View History

#pragma once
#include "CDTable.h"
#include "Singleton.h"
#define UNUSED_TABLE(v)
/**
* Initialize the CDClient tables so they are all loaded into memory.
*/
class CDClientManager : public Singleton<CDClientManager> {
public:
CDClientManager();
2022-07-28 13:39:57 +00:00
/**
* Fetch a table from CDClient
*
* @tparam Table type to fetch
* @return A pointer to the requested table.
2022-07-28 13:39:57 +00:00
*/
template<typename T>
T* GetTable() {
return &T::Instance();
2022-07-28 13:39:57 +00:00
}
};