mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-20 15:13:51 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
57
Minecraft.World/LevelStorageProfilerDecorator.cpp
Normal file
57
Minecraft.World/LevelStorageProfilerDecorator.cpp
Normal file
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue