This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
22 lines
636 B
C++
22 lines
636 B
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "LevelStorage.h"
|
|
|
|
#include "ConsoleSavePath.h"
|
|
|
|
class MockedLevelStorage : public LevelStorage
|
|
{
|
|
public:
|
|
virtual LevelData *prepareLevel();
|
|
virtual void checkSession();
|
|
virtual ChunkStorage *createChunkStorage(Dimension *dimension);
|
|
virtual void saveLevelData(LevelData *levelData, vector<shared_ptr<Player> > *players);
|
|
virtual void saveLevelData(LevelData *levelData);
|
|
virtual PlayerIO *getPlayerIO();
|
|
virtual void closeAll();
|
|
virtual ConsoleSavePath getDataFile(const wstring& id);
|
|
virtual wstring getLevelId();
|
|
public:
|
|
virtual ConsoleSaveFile *getSaveFile() { return NULL; }
|
|
}; |