mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
* 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>
34 lines
926 B
C++
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
|
|
};
|
|
|