add killmgr
This commit is contained in:
parent
cda2dcba8b
commit
62d2b8246b
@ -34,6 +34,7 @@
|
|||||||
#include "incubator.h"
|
#include "incubator.h"
|
||||||
#include "team.h"
|
#include "team.h"
|
||||||
#include "explosion.h"
|
#include "explosion.h"
|
||||||
|
#include "killmgr.h"
|
||||||
|
|
||||||
const int kReviveTimeAdd = 12;
|
const int kReviveTimeAdd = 12;
|
||||||
const int kSkinNum = 4;
|
const int kSkinNum = 4;
|
||||||
|
@ -23,6 +23,7 @@ struct PartObject
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct xtimer_list;
|
struct xtimer_list;
|
||||||
|
struct KillInfo;
|
||||||
class CircleCollider;
|
class CircleCollider;
|
||||||
class AabbCollider;
|
class AabbCollider;
|
||||||
class Obstacle;
|
class Obstacle;
|
||||||
|
13
server/gameserver/killmgr.cc
Normal file
13
server/gameserver/killmgr.cc
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#include "precompile.h"
|
||||||
|
|
||||||
|
#include "killmgr.h"
|
||||||
|
|
||||||
|
void KillMgr::Init()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void KillMgr::UnInit()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
24
server/gameserver/killmgr.h
Normal file
24
server/gameserver/killmgr.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#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 KillMgr : public a8::Singleton<KillMgr>
|
||||||
|
{
|
||||||
|
|
||||||
|
private:
|
||||||
|
KillMgr() {};
|
||||||
|
friend class a8::Singleton<KillMgr>;
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
void Init();
|
||||||
|
void UnInit();
|
||||||
|
};
|
@ -154,14 +154,6 @@ struct ObstacleData
|
|||||||
std::map<int, std::tuple<long long, a8::Vec2>>* interaction_humans = nullptr;
|
std::map<int, std::tuple<long long, a8::Vec2>>* interaction_humans = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct KillInfo
|
|
||||||
{
|
|
||||||
int killer_id = 0;
|
|
||||||
int killer_team_id = 0;
|
|
||||||
int weapon_id = 0;
|
|
||||||
std::string msg;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct Inventory
|
struct Inventory
|
||||||
{
|
{
|
||||||
int slot = 0;
|
int slot = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user