Files
mcpe/source/world/level/levelgen/chunk/ChunkSource.hpp
Brent f7915a1dab Mac OS X 10.6 & More C++03 Support (#68)
* Mac OS X 10.6 & More C++03 Support

* Fix SDL2 options.txt loading for C++03

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
2023-08-27 11:46:15 +03:00

34 lines
926 B
C++

/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#pragma once
#include <string>
#include "common/Utils.hpp"
#include "GameMods.hpp"
class Level;
class LevelChunk;
class ChunkSource
{
public:
virtual ~ChunkSource();
virtual bool hasChunk(int, int) = 0;
virtual LevelChunk* getChunk(int, int) = 0;
virtual LevelChunk* create(int, int) = 0;
virtual LevelChunk* getChunkDontCreate(int, int) = 0;
virtual void postProcess(ChunkSource*, int, int) = 0;
virtual int tick() = 0;
virtual bool shouldSave() = 0;
virtual void saveAll();
virtual std::string gatherStats() = 0;
#ifdef ENH_IMPROVED_SAVING
virtual void saveUnsaved();
#endif
};