This commit is contained in:
aozhiwei 2022-08-23 19:45:23 +08:00
parent 82931b9088
commit 7390a49301
3 changed files with 28 additions and 11 deletions

View File

@ -0,0 +1,8 @@
#include "precompile.h"
#include "pvedata.h"
void PveData::AddDamageInfo(int sender_id, int receiver_id, float dmg)
{
}

View File

@ -0,0 +1,19 @@
#pragma once
struct PveData
{
int wave = 0;
int max_wave = 0;
int mon_num = 0;
int boss_state = 0;
int refreshed_mon = 0;
int killed_num = 0;
void AddDamageInfo(int sender_id, int receiver_id, float dmg);
private:
std::map<int, std::map<int, float>> damage_hash_;
};

View File

@ -7,6 +7,7 @@
#include "gridservice.h" #include "gridservice.h"
#include "mapservice.h" #include "mapservice.h"
#include "gasdata.h" #include "gasdata.h"
#include "pvedata.h"
#include "bornpoint.h" #include "bornpoint.h"
namespace MetaData namespace MetaData
@ -73,17 +74,6 @@ struct CarObject
bool taken = false; bool taken = false;
}; };
struct PveData
{
int wave = 0;
int max_wave = 0;
int mon_num = 0;
int boss_state = 0;
int refreshed_mon = 0;
int killed_num = 0;
};
class MatchTeam; class MatchTeam;
class Room class Room
{ {