* Fixed boats falling and a TP glitch #266 * Replaced every C-style cast with C++ ones * Replaced every C-style cast with C++ ones * Fixed boats falling and a TP glitch #266 * Updated NULL to nullptr and fixing some type issues * Modernized and fixed a few bugs - Replaced most instances of `NULL` with `nullptr`. - Replaced most `shared_ptr(new ...)` with `make_shared`. - Removed the `nullptr` macro as it was interfering with the actual nullptr keyword in some instances. * Fixing more conflicts * Replace int loops with size_t and start work on overrides
63 lines
1.2 KiB
C++
63 lines
1.2 KiB
C++
#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 "com.mojang.nbt.h"
|
|
#include "MemoryLevelStorage.h"
|
|
|
|
#include "ConsoleSaveFileIO.h"
|
|
|
|
MemoryLevelStorage::MemoryLevelStorage()
|
|
{
|
|
}
|
|
|
|
LevelData *MemoryLevelStorage::prepareLevel()
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
void MemoryLevelStorage::checkSession()
|
|
{
|
|
}
|
|
|
|
ChunkStorage *MemoryLevelStorage::createChunkStorage(Dimension *dimension)
|
|
{
|
|
return new MemoryChunkStorage();
|
|
}
|
|
|
|
void MemoryLevelStorage::saveLevelData(LevelData *levelData, vector<shared_ptr<Player> > *players)
|
|
{
|
|
}
|
|
|
|
void MemoryLevelStorage::saveLevelData(LevelData *levelData)
|
|
{
|
|
}
|
|
|
|
PlayerIO *MemoryLevelStorage::getPlayerIO()
|
|
{
|
|
return this;
|
|
}
|
|
|
|
void MemoryLevelStorage::closeAll()
|
|
{
|
|
}
|
|
|
|
void MemoryLevelStorage::save(shared_ptr<Player> player)
|
|
{
|
|
}
|
|
|
|
bool MemoryLevelStorage::load(shared_ptr<Player> player)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
CompoundTag *MemoryLevelStorage::loadPlayerDataTag(const wstring& playerName)
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
ConsoleSavePath MemoryLevelStorage::getDataFile(const wstring& id)
|
|
{
|
|
return ConsoleSaveFile(wstring(L""));
|
|
} |