27 lines
400 B
C++
27 lines
400 B
C++
#pragma once
|
|
|
|
#include <a8/basehttpsession.h>
|
|
|
|
struct KillInfo
|
|
{
|
|
int killer_id = 0;
|
|
int killer_team_id = 0;
|
|
int weapon_id = 0;
|
|
std::string msg;
|
|
};
|
|
|
|
class Human;
|
|
class KillMgr : public a8::Singleton<KillMgr>
|
|
{
|
|
|
|
private:
|
|
KillMgr() {};
|
|
friend class a8::Singleton<KillMgr>;
|
|
|
|
public:
|
|
|
|
void Init();
|
|
void UnInit();
|
|
void OnHumanDead(Human* dead_hum, KillInfo* info);
|
|
};
|