1
This commit is contained in:
parent
87ed2d19c1
commit
84a5f23a26
@ -24,11 +24,13 @@
|
||||
#include "dbhelper.h"
|
||||
#include "synchelper.h"
|
||||
#include "perfmonitor.h"
|
||||
#include "gamelog.h"
|
||||
|
||||
#include "MSConnMgr.h"
|
||||
#include "IMConnMgr.h"
|
||||
|
||||
#include "framework/cpp/msgqueue.h"
|
||||
#include "framework/cpp/tglog.h"
|
||||
#include "framework/cpp/netmsghandler.h"
|
||||
|
||||
struct MsgNode
|
||||
@ -85,6 +87,8 @@ bool App::Init(int argc, char* argv[])
|
||||
HandlerMgr::Instance()->Init();
|
||||
a8::Timer::Instance()->Init();
|
||||
f8::MsgQueue::Instance()->Init();
|
||||
f8::TGLog::Instance()->Init(a8::Format(PROJ_NAME_FMT, {GAME_ID}), false);
|
||||
GameLog::Instance()->Init();
|
||||
a8::IoLoop::Instance()->Init(1);
|
||||
JsonDataMgr::Instance()->Init();
|
||||
uuid.SetMachineId(instance_id);
|
||||
@ -142,6 +146,8 @@ void App::UnInit()
|
||||
MSConnMgr::Instance()->UnInit();
|
||||
JsonDataMgr::Instance()->UnInit();
|
||||
a8::IoLoop::Instance()->UnInit();
|
||||
GameLog::Instance()->UnInit();
|
||||
f8::TGLog::Instance()->UnInit();
|
||||
f8::MsgQueue::Instance()->UnInit();
|
||||
a8::Timer::Instance()->UnInit();
|
||||
HandlerMgr::Instance()->UnInit();
|
||||
|
17
server/imserver/gamelog.cc
Normal file
17
server/imserver/gamelog.cc
Normal file
@ -0,0 +1,17 @@
|
||||
#include "precompile.h"
|
||||
#include "gamelog.h"
|
||||
#include "framework/cpp/utils.h"
|
||||
#include "framework/cpp/tglog.h"
|
||||
#include <a8/mutable_xobject.h>
|
||||
#include "player.h"
|
||||
#include "app.h"
|
||||
|
||||
void GameLog::Init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GameLog::UnInit()
|
||||
{
|
||||
|
||||
}
|
16
server/imserver/gamelog.h
Normal file
16
server/imserver/gamelog.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
class Player;
|
||||
class GameLog : public a8::Singleton<GameLog>
|
||||
{
|
||||
private:
|
||||
GameLog(){};
|
||||
friend class a8::Singleton<GameLog>;
|
||||
public:
|
||||
|
||||
void Init();
|
||||
void UnInit();
|
||||
|
||||
private:
|
||||
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user