This commit is contained in:
aozhiwei 2024-03-20 17:00:35 +08:00
parent 0ae28498fe
commit fb60ecd301
3 changed files with 15 additions and 1 deletions

View File

@ -18,6 +18,7 @@ namespace cs
class MFSandTableFullMsg;
class MFSandTablePartMsg;
class MFMobaBattleDataMember;
class MFTeamPart;
class SMGameOver;
class SMUpdate;
}
@ -164,6 +165,7 @@ class Human : public Creature
long long GetRealDeadFrameNo(Room* room);
void FillMFTeamData(Human* hum, cs::MFTeamData* team_data, bool is_game_over);
void FillMFMobaBattleDataMember(cs::MFMobaBattleDataMember* p);
void FillMFTeamPart(cs::MFTeamPart* p);
void CarShot(const glm::vec3& target_dir);
void BeKill(int killer_id, const std::string& killer_name, int weapon_id,
int real_killer_id, const std::string& real_killer_name);

View File

@ -1034,6 +1034,11 @@ void Human::FillMFMobaBattleDataMember(cs::MFMobaBattleDataMember* p)
p->set_main_skill_cd(GetMainSkill()->GetLeftTime());
}
void Human::FillMFTeamPart(cs::MFTeamPart* p)
{
}
void Human::FillSMGameOver(cs::SMGameOver& msg)
{
if (room->GetVictoryTeam()) {
@ -2502,6 +2507,11 @@ void Team::FillMFMobaBattleDataTeam(cs::MFMobaBattleDataTeam* p)
});
}
void Team::FillSMTeamFullNotify(cs::SMTeamFullNotify* p)
{
}
bool PBUtils::SupportSandTable(int proto_version)
{
return true;

View File

@ -2,8 +2,9 @@
namespace cs
{
class SMGameOver;
class MFMobaBattleDataTeam;
class SMGameOver;
class SMTeamFullNotify;
}
namespace a8
@ -63,6 +64,7 @@ class Team : public std::enable_shared_from_this<Team>
long long GetLastKillFrameNo() { return last_kill_frameno_; }
bool MemberHasOb();
void FillMFMobaBattleDataTeam(cs::MFMobaBattleDataTeam* p);
void FillSMTeamFullNotify(cs::SMTeamFullNotify* p);
private:
int team_id_ = 0;