blob: 67c582daf3cb312945afa40ce3301e0536085016 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "ChunkStorage.h"
class Level;
class ChunkStorageProfilerDecorator : public ChunkStorage
{
private:
ChunkStorage *capsulated;
__int64 timeSpentLoading;
__int64 loadCount;
__int64 timeSpentSaving;
__int64 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();
};
|