This commit is contained in:
aozhiwei 2024-03-28 20:38:45 +08:00
parent 2cbc3e36b8
commit e21095fe32
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#include "precompile.h"
#include "ingamevoice.h"
#include "room.h"
#include "player.h"
InGameVoice::InGameVoice(Room* room)
{
room_ = room;
}
InGameVoice::~InGameVoice()
{
}
void InGameVoice::Init()
{
}
void InGameVoice::UnInit()
{
}

View File

@ -0,0 +1,16 @@
#pragma once
class Room;
class InGameVoice : public std::enable_shared_from_this<InGameVoice>
{
public:
InGameVoice(Room* room);
~InGameVoice();
void Init();
void UnInit();
private:
Room* room_ = nullptr;
};

View File

@ -47,6 +47,7 @@
#include "custom_member.h" #include "custom_member.h"
#include "room_agent.h" #include "room_agent.h"
#include "roomob.h" #include "roomob.h"
#include "ingamevoice.h"
#include "mt/Param.h" #include "mt/Param.h"
#include "mt/Hero.h" #include "mt/Hero.h"
@ -109,6 +110,8 @@ void Room::Init()
frame_event.room = this; frame_event.room = this;
frame_event_data = std::make_shared<FrameEventData>(); frame_event_data = std::make_shared<FrameEventData>();
ingame_voice_ = std::make_shared<InGameVoice>(this);
air_drop_ = std::make_shared<AirDrop>(this); air_drop_ = std::make_shared<AirDrop>(this);
air_raid_ = std::make_shared<AirRaid>(this); air_raid_ = std::make_shared<AirRaid>(this);
batch_sync_ = std::make_shared<BatchSync>(this); batch_sync_ = std::make_shared<BatchSync>(this);