1
This commit is contained in:
parent
183ef13fc3
commit
9b6e54b010
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
8
server/gameserver/sandtable.cc
Normal file
8
server/gameserver/sandtable.cc
Normal file
@ -0,0 +1,8 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "sandtable.h"
|
||||
|
||||
SandTable::SandTable(Room* room): room_(room)
|
||||
{
|
||||
|
||||
}
|
11
server/gameserver/sandtable.h
Normal file
11
server/gameserver/sandtable.h
Normal file
@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
class Room;
|
||||
class SandTable
|
||||
{
|
||||
public:
|
||||
SandTable(Room* room);
|
||||
|
||||
private:
|
||||
Room* room_ = nullptr;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user