mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-26 21:34:42 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,69 +1,44 @@
|
||||
#include "../../Platform/stdafx.h"
|
||||
#include "LevelSummary.h"
|
||||
|
||||
LevelSummary::LevelSummary(const std::wstring& levelId, const std::wstring& levelName, __int64 lastPlayed, __int64 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 )
|
||||
{
|
||||
LevelSummary::LevelSummary(const std::wstring& levelId,
|
||||
const std::wstring& levelName, __int64 lastPlayed,
|
||||
__int64 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 LevelSummary::getSizeOnDisk() { return sizeOnDisk; }
|
||||
|
||||
bool LevelSummary::isRequiresConversion() { return requiresConversion; }
|
||||
|
||||
__int64 LevelSummary::getLastPlayed() { return lastPlayed; }
|
||||
|
||||
int LevelSummary::compareTo(LevelSummary* rhs) {
|
||||
if (lastPlayed < rhs->lastPlayed) {
|
||||
return 1;
|
||||
}
|
||||
if (lastPlayed > rhs->lastPlayed) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// TODO 4J Jev, used to be compareTo in java, is this right?
|
||||
return levelId.compare(rhs->levelId);
|
||||
}
|
||||
|
||||
std::wstring LevelSummary::getLevelId()
|
||||
{
|
||||
return levelId;
|
||||
}
|
||||
GameType* LevelSummary::getGameMode() { return gameMode; }
|
||||
|
||||
std::wstring LevelSummary::getLevelName()
|
||||
{
|
||||
return levelName;
|
||||
}
|
||||
bool LevelSummary::isHardcore() { return hardcore; }
|
||||
|
||||
__int64 LevelSummary::getSizeOnDisk()
|
||||
{
|
||||
return sizeOnDisk;
|
||||
}
|
||||
|
||||
bool LevelSummary::isRequiresConversion()
|
||||
{
|
||||
return requiresConversion;
|
||||
}
|
||||
|
||||
__int64 LevelSummary::getLastPlayed()
|
||||
{
|
||||
return lastPlayed;
|
||||
}
|
||||
|
||||
int LevelSummary::compareTo(LevelSummary *rhs)
|
||||
{
|
||||
if (lastPlayed < rhs->lastPlayed)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if (lastPlayed > rhs->lastPlayed)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
// TODO 4J Jev, used to be compareTo in java, is this right?
|
||||
return levelId.compare(rhs->levelId);
|
||||
}
|
||||
|
||||
GameType *LevelSummary::getGameMode()
|
||||
{
|
||||
return gameMode;
|
||||
}
|
||||
|
||||
bool LevelSummary::isHardcore()
|
||||
{
|
||||
return hardcore;
|
||||
}
|
||||
|
||||
bool LevelSummary::hasCheats()
|
||||
{
|
||||
return _hasCheats;
|
||||
}
|
||||
bool LevelSummary::hasCheats() { return _hasCheats; }
|
||||
Reference in New Issue
Block a user