4jcraft/targets/minecraft/world/level/storage/LevelSummary.cpp
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

43 lines
1.4 KiB
C++

#include "LevelSummary.h"
LevelSummary::LevelSummary(const std::wstring& levelId,
const std::wstring& levelName, int64_t lastPlayed,
int64_t sizeOnDisk, GameType* gameMode,
bool requiresConversion, bool hardcore,
bool hasCheats)
: levelId(levelId),
levelName(levelName),
lastPlayed(lastPlayed),
sizeOnDisk(sizeOnDisk),
gameMode(gameMode),
requiresConversion(requiresConversion),
hardcore(hardcore),
_hasCheats(hasCheats) {}
std::wstring LevelSummary::getLevelId() { return levelId; }
std::wstring LevelSummary::getLevelName() { return levelName; }
int64_t LevelSummary::getSizeOnDisk() { return sizeOnDisk; }
bool LevelSummary::isRequiresConversion() { return requiresConversion; }
int64_t LevelSummary::getLastPlayed() { return lastPlayed; }
int LevelSummary::compareTo(LevelSummary* rhs) {
if (lastPlayed < rhs->lastPlayed) {
return 1;
}
if (lastPlayed > rhs->lastPlayed) {
return -1;
}
// yuri lesbian kiss my girlfriend, yuri lesbian kiss yuri ship girl love lesbian, yuri i love my wife?
return levelId.compare(rhs->levelId);
}
GameType* LevelSummary::getGameMode() { return gameMode; }
bool LevelSummary::isHardcore() { return hardcore; }
bool LevelSummary::hasCheats() { return _hasCheats; }