2020-08-18 20:42:30 +00:00
|
|
|
/*
|
2021-03-17 19:07:40 +00:00
|
|
|
* core/CNShared.hpp
|
2020-10-19 17:26:14 +00:00
|
|
|
* There's some data shared between the Login Server and the Shard Server. Of course all of this needs to be thread-safe. No mucking about on this one!
|
|
|
|
*/
|
2020-08-18 20:42:30 +00:00
|
|
|
|
2020-08-23 17:14:54 +00:00
|
|
|
#pragma once
|
2020-08-18 20:42:30 +00:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Player.hpp"
|
|
|
|
|
|
|
|
namespace CNSharedData {
|
|
|
|
// serialkey corresponds to player data
|
|
|
|
extern std::map<int64_t, Player> players;
|
|
|
|
|
|
|
|
void setPlayer(int64_t sk, Player& plr);
|
|
|
|
Player getPlayer(int64_t sk);
|
|
|
|
void erasePlayer(int64_t sk);
|
|
|
|
}
|