the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4// If we have more than MAX_PLAYER_DATA_SAVES player.dat's then we delete the oldest ones
5// This value can be no higher than MAXIMUM_MAP_SAVE_DATA/3 (3 being the number of dimensions in future versions)
6#define MAX_PLAYER_DATA_SAVES 80
7
8class Player;
9
10class PlayerIO
11{
12public:
13 virtual void save(shared_ptr<Player> player) = 0;
14 virtual CompoundTag *load(shared_ptr<Player> player) = 0;
15 virtual CompoundTag *loadPlayerDataTag(PlayerUID xuid) = 0; // 4J Changed from string name to xuid
16
17 // 4J Added
18 virtual void clearOldPlayerFiles() = 0;
19 virtual void saveMapIdLookup() = 0;
20 virtual void deleteMapFilesForPlayer(shared_ptr<Player> player) = 0;
21 virtual void saveAllCachedData() = 0;
22};