This commit is contained in:
aozhiwei 2023-05-16 19:54:22 +08:00
parent 183ef13fc3
commit 9b6e54b010
4 changed files with 24 additions and 0 deletions

View File

@ -39,6 +39,7 @@
#include "bornpoint.h"
#include "airdrop.h"
#include "airraid.h"
#include "sandtable.h"
#include "mt/Param.h"
#include "mt/Hero.h"
@ -121,6 +122,7 @@ void Room::Init()
incubator_ = new Incubator();
incubator_->room = this;
incubator_->Init();
sand_table_ = std::make_shared<SandTable>(this);
#ifdef DEBUG
InitDebugInfo();
#endif

View File

@ -34,6 +34,7 @@ struct BornPoint;
class MapInstance;
struct RoomInitInfo;
struct FrameEventData;
class SandTable;
struct Plane
{
@ -239,6 +240,7 @@ public:
int GetPvpMatchMode();
void ForceOver();
bool SupportSandTable();
std::shared_ptr<SandTable> GetSandTable() { return sand_table_; }
private:
void ShuaAndroid();
@ -383,6 +385,7 @@ private:
a8::XTimerWp auto_jump_timer_;
Incubator* incubator_ = nullptr;
std::shared_ptr<SandTable> sand_table_;
bool infinite_bullet_mode_ = false;

View File

@ -0,0 +1,8 @@
#include "precompile.h"
#include "sandtable.h"
SandTable::SandTable(Room* room): room_(room)
{
}

View File

@ -0,0 +1,11 @@
#pragma once
class Room;
class SandTable
{
public:
SandTable(Room* room);
private:
Room* room_ = nullptr;
};