mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
23 lines
513 B
C++
23 lines
513 B
C++
|
/*
|
||
|
CNShared.hpp
|
||
|
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!
|
||
|
*/
|
||
|
|
||
|
#ifndef _CNSD_HPP
|
||
|
#define _CNSD_HPP
|
||
|
|
||
|
#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);
|
||
|
}
|
||
|
|
||
|
#endif
|