1
This commit is contained in:
parent
6b814243a0
commit
5b7c161750
@ -26,6 +26,7 @@
|
||||
#include "perfmonitor.h"
|
||||
#include "killmgr.h"
|
||||
#include "httpproxy.h"
|
||||
#include "lispenv.h"
|
||||
|
||||
#include "ss_msgid.pb.h"
|
||||
#include "ss_proto.pb.h"
|
||||
@ -177,6 +178,7 @@ bool App::Init(int argc, char* argv[])
|
||||
SkillHelper::Init();
|
||||
JsonDataMgr::Instance()->Init();
|
||||
mt::MetaMgr::Instance()->Init();
|
||||
LispEnv::Instance()->Init();
|
||||
SelfChecker::Init();
|
||||
EntityFactory::Instance()->Init();
|
||||
uuid.SetMachineId((node_id - 1) * MAX_NODE_ID + instance_id);
|
||||
@ -234,6 +236,7 @@ void App::UnInit()
|
||||
KillMgr::Instance()->UnInit();
|
||||
EntityFactory::Instance()->UnInit();
|
||||
SelfChecker::UnInit();
|
||||
LispEnv::Instance()->UnInit();
|
||||
mt::MetaMgr::Instance()->UnInit();
|
||||
JsonDataMgr::Instance()->UnInit();
|
||||
f8::BtMgr::Instance()->UnInit();
|
||||
|
13
server/gameserver/lispenv.cc
Normal file
13
server/gameserver/lispenv.cc
Normal file
@ -0,0 +1,13 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "lispenv.h"
|
||||
|
||||
void LispEnv::Init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void LispEnv::UnInit()
|
||||
{
|
||||
|
||||
}
|
23
server/gameserver/lispenv.h
Normal file
23
server/gameserver/lispenv.h
Normal file
@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <a8/singleton.h>
|
||||
#include <a8/lisp.h>
|
||||
|
||||
class LispEnv : public a8::Singleton<LispEnv>
|
||||
{
|
||||
|
||||
private:
|
||||
LispEnv() {};
|
||||
friend class a8::Singleton<LispEnv>;
|
||||
|
||||
public:
|
||||
|
||||
void Init();
|
||||
void UnInit();
|
||||
|
||||
std::shared_ptr<a8::lisp::GlobalScope> GetSkillEnv() { return skill_env_; };
|
||||
|
||||
private:
|
||||
|
||||
std::shared_ptr<a8::lisp::GlobalScope> skill_env_;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user