This commit is contained in:
aozhiwei 2023-05-14 16:20:27 +08:00
parent 1fc68a5d59
commit 07b3d684ff
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#include "precompile.h"
#include "player.h"

View File

@ -0,0 +1,6 @@
#pragma once
class Player
{
};

View File

@ -0,0 +1,17 @@
#include "precompile.h"
#include <f8/udplog.h>
#include "playermgr.h"
#include "player.h"
#include <f8/utils.h>
#include <f8/msgqueue.h>
void PlayerMgr::Init()
{
}
void PlayerMgr::UnInit()
{
}

View File

@ -0,0 +1,21 @@
#pragma once
#include <a8/singleton.h>
class Player;
class PlayerMgr : public a8::Singleton<PlayerMgr>
{
public:
enum { HID = HID_PlayerMgr };
private:
PlayerMgr() {};
friend class a8::Singleton<PlayerMgr>;
public:
void Init();
void UnInit();
private:
std::map<std::string, std::shared_ptr<Player>> account_id_hash_;
};