mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-27 07:57:21 +00:00
56f371216b
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`.
23 lines
386 B
C++
23 lines
386 B
C++
#pragma once
|
|
|
|
#include "GeneralUtils.h"
|
|
|
|
#include "Game.h"
|
|
#include "dLogger.h"
|
|
#include "dServer.h"
|
|
|
|
#include "CDTable.h"
|
|
|
|
template <
|
|
typename KeyType,
|
|
typename MappedType
|
|
>
|
|
class CDAbstractProvider
|
|
{
|
|
public:
|
|
virtual void LoadClient() = 0;
|
|
virtual void LoadHost() = 0;
|
|
|
|
virtual const MappedType& GetEntry(const KeyType& key, const MappedType& defaultValue) = 0;
|
|
};
|