mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 14:03:34 +00:00
7671cc6865
* CDClient cleanup and optimization - Use static function to get table name - Remove unused GetName function - Replace above function with a static GetTableName function - Remove verbose comments - Remove verbose initializers - Remove need to specify table name when getting a table by name - Remove unused typedef for mac and linux * Re-add unused table Convert tables to singletons - Convert all CDClient tables to singletons - Move Singleton.h to dCommon - Reduce header clutter in CDClientManager
26 lines
542 B
C++
26 lines
542 B
C++
#pragma once
|
|
|
|
#include "CDClientDatabase.h"
|
|
#include "Singleton.h"
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
// CPPLinq
|
|
#ifdef _WIN32
|
|
#define NOMINMAX
|
|
// windows.h has min and max macros that breaks cpplinq
|
|
#endif
|
|
#include "cpplinq.hpp"
|
|
|
|
#pragma warning (disable : 4244) //Disable double to float conversion warnings
|
|
#pragma warning (disable : 4715) //Disable "not all control paths return a value"
|
|
|
|
template<class Table>
|
|
class CDTable : public Singleton<Table> {
|
|
protected:
|
|
virtual ~CDTable() = default;
|
|
};
|