Files
MinecraftConsoles/Minecraft.World/ChunkStorageProfileDecorator.h
void_17 d63f79325f Get rid of MSVC's __int64
Use either int64_t, uint64_t or long long and unsigned long long, defined as per C++11 standard
2026-03-02 15:53:32 +07:00

26 lines
531 B
C++

#pragma once
#include "ChunkStorage.h"
class Level;
class ChunkStorageProfilerDecorator : public ChunkStorage
{
private:
ChunkStorage *capsulated;
int64_t timeSpentLoading;
int64_t loadCount;
int64_t timeSpentSaving;
int64_t saveCount;
int counter;
public:
ChunkStorageProfilerDecorator(ChunkStorage *capsulated);
LevelChunk *load(Level *level, int x, int z);
void save(Level *level, LevelChunk *levelChunk);
void saveEntities(Level *level, LevelChunk *levelChunk);
void tick();
void flush();
};