1
This commit is contained in:
parent
57f64ae48a
commit
bc5ce27579
@ -23,6 +23,7 @@
|
|||||||
#include "mapmgr.h"
|
#include "mapmgr.h"
|
||||||
#include "entityfactory.h"
|
#include "entityfactory.h"
|
||||||
#include "perfmonitor.h"
|
#include "perfmonitor.h"
|
||||||
|
#include "killmgr.h"
|
||||||
|
|
||||||
#include "ss_msgid.pb.h"
|
#include "ss_msgid.pb.h"
|
||||||
#include "ss_proto.pb.h"
|
#include "ss_proto.pb.h"
|
||||||
@ -149,6 +150,7 @@ bool App::Init(int argc, char* argv[])
|
|||||||
MetaMgr::Instance()->Init();
|
MetaMgr::Instance()->Init();
|
||||||
EntityFactory::Instance()->Init();
|
EntityFactory::Instance()->Init();
|
||||||
uuid.SetMachineId((node_id - 1) * MAX_NODE_ID + instance_id);
|
uuid.SetMachineId((node_id - 1) * MAX_NODE_ID + instance_id);
|
||||||
|
KillMgr::Instance()->Init();
|
||||||
RoomMgr::Instance()->Init();
|
RoomMgr::Instance()->Init();
|
||||||
MapMgr::Instance()->Init();
|
MapMgr::Instance()->Init();
|
||||||
PlayerMgr::Instance()->Init();
|
PlayerMgr::Instance()->Init();
|
||||||
@ -189,6 +191,7 @@ void App::UnInit()
|
|||||||
PlayerMgr::Instance()->UnInit();
|
PlayerMgr::Instance()->UnInit();
|
||||||
MapMgr::Instance()->UnInit();
|
MapMgr::Instance()->UnInit();
|
||||||
RoomMgr::Instance()->UnInit();
|
RoomMgr::Instance()->UnInit();
|
||||||
|
KillMgr::Instance()->UnInit();
|
||||||
EntityFactory::Instance()->UnInit();
|
EntityFactory::Instance()->UnInit();
|
||||||
MetaMgr::Instance()->UnInit();
|
MetaMgr::Instance()->UnInit();
|
||||||
JsonDataMgr::Instance()->UnInit();
|
JsonDataMgr::Instance()->UnInit();
|
||||||
|
@ -831,6 +831,9 @@ void Human::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
DoGetDown();
|
DoGetDown();
|
||||||
|
#if 0
|
||||||
|
KillMgr::Instance()->OnHumanDead();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user