1
This commit is contained in:
parent
2cbc3e36b8
commit
e21095fe32
@ -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()
|
||||
{
|
||||
|
||||
}
|
@ -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;
|
||||
};
|
@ -47,6 +47,7 @@
|
||||
#include "custom_member.h"
|
||||
#include "room_agent.h"
|
||||
#include "roomob.h"
|
||||
#include "ingamevoice.h"
|
||||
|
||||
#include "mt/Param.h"
|
||||
#include "mt/Hero.h"
|
||||
@ -109,6 +110,8 @@ void Room::Init()
|
||||
frame_event.room = this;
|
||||
frame_event_data = std::make_shared<FrameEventData>();
|
||||
|
||||
ingame_voice_ = std::make_shared<InGameVoice>(this);
|
||||
|
||||
air_drop_ = std::make_shared<AirDrop>(this);
|
||||
air_raid_ = std::make_shared<AirRaid>(this);
|
||||
batch_sync_ = std::make_shared<BatchSync>(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user