mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
28 lines
756 B
C++
28 lines
756 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>
|
|
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 void postProcess(ChunkSource*, int, int) = 0;
|
|
virtual int tick() = 0;
|
|
virtual bool shouldSave() = 0;
|
|
virtual void saveAll();
|
|
virtual std::string gatherStats() = 0;
|
|
};
|
|
|