diff options
Diffstat (limited to 'Minecraft.World/LevelStorageProfilerDecorator.cpp')
| -rw-r--r-- | Minecraft.World/LevelStorageProfilerDecorator.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Minecraft.World/LevelStorageProfilerDecorator.cpp b/Minecraft.World/LevelStorageProfilerDecorator.cpp new file mode 100644 index 00000000..b6a4276e --- /dev/null +++ b/Minecraft.World/LevelStorageProfilerDecorator.cpp @@ -0,0 +1,57 @@ +#include "stdafx.h" +#include "net.minecraft.world.entity.player.h" +#include "net.minecraft.world.level.h" +#include "net.minecraft.world.level.chunk.storage.h" +#include "net.minecraft.world.level.dimension.h" +#include "LevelStorageProfilerDecorator.h" + +#include "ConsoleSaveFileIO.h" + +LevelStorageProfilerDecorator::LevelStorageProfilerDecorator(LevelStorage *capsulated) : capsulated ( capsulated ) +{ +} + +LevelData *LevelStorageProfilerDecorator::prepareLevel() +{ + return capsulated->prepareLevel(); +} + +void LevelStorageProfilerDecorator::checkSession() // throws LevelConflictException +{ + capsulated->checkSession(); +} + +ChunkStorage *LevelStorageProfilerDecorator::createChunkStorage(Dimension *dimension) +{ + return new ChunkStorageProfilerDecorator(capsulated->createChunkStorage(dimension)); +} + +void LevelStorageProfilerDecorator::saveLevelData(LevelData *levelData, vector<shared_ptr<Player> > *players) +{ + capsulated->saveLevelData(levelData, players); +} + +void LevelStorageProfilerDecorator::saveLevelData(LevelData *levelData) +{ + capsulated->saveLevelData(levelData); +} + +PlayerIO *LevelStorageProfilerDecorator::getPlayerIO() +{ + return capsulated->getPlayerIO(); +} + +void LevelStorageProfilerDecorator::closeAll() +{ + capsulated->closeAll(); +} + +ConsoleSavePath LevelStorageProfilerDecorator::getDataFile(const wstring& id) +{ + return capsulated->getDataFile(id); +} + +wstring LevelStorageProfilerDecorator::getLevelId() +{ + return capsulated->getLevelId(); +}
\ No newline at end of file |
