This commit is contained in:
aozhiwei 2023-05-30 12:04:54 +08:00
parent 1385baa2a4
commit 1d88008f8f
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
#include "precompile.h"
#include "batchsync.h"
BatchSync::BatchSync(Room* room)
{
room_ = room;
}

View File

@ -2,7 +2,10 @@
class BatchSync
{
public:
Room* room = nullptr;
public:
BatchSync(Room* room);
private:
Room* room_ = nullptr;
};

View File

@ -40,6 +40,7 @@
#include "airdrop.h"
#include "airraid.h"
#include "sandtable.h"
#include "batchsync.h"
#include "mt/Param.h"
#include "mt/Hero.h"
@ -116,6 +117,7 @@ void Room::Init()
air_drop_ = std::make_shared<AirDrop>(this);
air_raid_ = std::make_shared<AirRaid>(this);
batch_sync_ = std::make_shared<BatchSync>(this);
CreateSpawnPoints();
CreateWorldObjects();