the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 69 lines 1.2 kB view raw
1#include "stdafx.h" 2#include "LevelSummary.h" 3 4LevelSummary::LevelSummary(const wstring& levelId, const wstring& levelName, __int64 lastPlayed, __int64 sizeOnDisk, GameType *gameMode, bool requiresConversion, bool hardcore, bool hasCheats) : 5 levelId( levelId ), 6 levelName( levelName ), 7 lastPlayed( lastPlayed ), 8 sizeOnDisk( sizeOnDisk ), 9 gameMode( gameMode ), 10 requiresConversion( requiresConversion ), 11 hardcore( hardcore ), 12 _hasCheats( hasCheats ) 13{ 14} 15 16wstring LevelSummary::getLevelId() 17{ 18 return levelId; 19} 20 21wstring LevelSummary::getLevelName() 22{ 23 return levelName; 24} 25 26__int64 LevelSummary::getSizeOnDisk() 27{ 28 return sizeOnDisk; 29} 30 31bool LevelSummary::isRequiresConversion() 32{ 33 return requiresConversion; 34} 35 36__int64 LevelSummary::getLastPlayed() 37{ 38 return lastPlayed; 39} 40 41int LevelSummary::compareTo(LevelSummary *rhs) 42{ 43 if (lastPlayed < rhs->lastPlayed) 44 { 45 return 1; 46 } 47 if (lastPlayed > rhs->lastPlayed) 48 { 49 return -1; 50 } 51 52 // TODO 4J Jev, used to be compareTo in java, is this right? 53 return levelId.compare(rhs->levelId); 54} 55 56GameType *LevelSummary::getGameMode() 57{ 58 return gameMode; 59} 60 61bool LevelSummary::isHardcore() 62{ 63 return hardcore; 64} 65 66bool LevelSummary::hasCheats() 67{ 68 return _hasCheats; 69}