mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
31 lines
856 B
C++
31 lines
856 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 <cstring>
|
|
#include "ChunkSource.hpp"
|
|
class Level;
|
|
|
|
class PerformanceTestChunkSource : public ChunkSource
|
|
{
|
|
public:
|
|
PerformanceTestChunkSource();
|
|
LevelChunk* create(int x, int z) override;
|
|
LevelChunk* getChunk(int x, int z) override;
|
|
LevelChunk* getChunkDontCreate(int x, int z) override;
|
|
bool hasChunk(int x, int z) override;
|
|
std::string gatherStats() override;
|
|
void postProcess(ChunkSource*, int, int) override;
|
|
bool shouldSave() override;
|
|
int tick() override;
|
|
|
|
public:
|
|
Level* m_pLevel;
|
|
};
|