New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
SaveData Struct Reference

#include <SaveMgr.h>

Classes

struct  AmbushData
struct  AmbushEnemy
struct  BoostRushData
struct  ChallengeData
struct  ChallengeReplay
struct  CoinEditCoin
struct  CoinEditData
struct  CoinEditLevel
struct  CoinEditStarCoin
struct  CSLocation
struct  Header
struct  LevelStat
struct  MiiData
struct  Records
struct  SaveSlot
struct  SaveSlots
struct  Statistics

Public Types

enum  WorldCompletionFlag : u16 {
  cWorldCompletionFlag_Opening = 1 << 0 , cWorldCompletionFlag_1 = 1 << 1 , cWorldCompletionFlag_2 = 1 << 2 , cWorldCompletionFlag_3 = 1 << 3 ,
  cWorldCompletionFlag_4 = 1 << 4 , cWorldCompletionFlag_5 = 1 << 5 , cWorldCompletionFlag_6 = 1 << 6 , cWorldCompletionFlag_7 = 1 << 7 ,
  cWorldCompletionFlag_8 = 1 << 8 , cWorldCompletionFlag_All = (cWorldCompletionFlag_Opening | cWorldCompletionFlag_1 | cWorldCompletionFlag_2 | cWorldCompletionFlag_3 | cWorldCompletionFlag_4 | cWorldCompletionFlag_5 | cWorldCompletionFlag_6 | cWorldCompletionFlag_7 | cWorldCompletionFlag_8)
}
enum  GameCompletionFlag : u8 {
  cGameCompletionFlag_Unknown1 = 1 << 0 , cGameCompletionFlag_AllLevels = 1 << 1 , cGameCompletionFlag_Unknown2 = 1 << 2 , cGameCompletionFlag_AllStarCoins = 1 << 3 ,
  cGameCompletionFlag_AllExits = 1 << 4
}
enum  ChibiYoshiAvailableFlag : u8 {
  cChibiYoshiAvailableFlag_World1 = 1 << 0 , cChibiYoshiAvailableFlag_World3 = 1 << 1 , cChibiYoshiAvailableFlag_World4 = 1 << 2 , cChibiYoshiAvailableFlag_World6 = 1 << 3 ,
  cChibiYoshiAvailableFlag_All = (cChibiYoshiAvailableFlag_World1 | cChibiYoshiAvailableFlag_World3 | cChibiYoshiAvailableFlag_World4 | cChibiYoshiAvailableFlag_World6)
}
enum  ActiveChibiYoshi : u8 {
  cActiveChibiYoshi_World1 , cActiveChibiYoshi_World3 , cActiveChibiYoshi_World4 , cActiveChibiYoshi_World6 ,
  cActiveChibiYoshi_None
}
enum  LevelCompletionFlag : u8 {
  cLevelCompletionFlag_Unlocked = 1 << 0 , cLevelCompletionFlag_PlayedOnce = 1 << 1 , cLevelCompletionFlag_BeatenOtehonReplay = 1 << 2 , cLevelCompletionFlag_SecretBeatenOtehonReplay = 1 << 3 ,
  cLevelCompletionFlag_BeatenReserved = 1 << 4 , cLevelCompletionFlag_SecretBeatenReserved = 1 << 5 , cLevelCompletionFlag_Beaten = 1 << 6 , cLevelCompletionFlag_SecretBeaten = 1 << 7
}
enum  LevelStarCoinFlag : u8 { cLevelStarCoinFlag_None = 0x0 , cLevelStarCoinFlag_All = 0x77 }
enum  InventoryItem : u8 {
  cInventoryItem_Mushroom = 0x0 , cInventoryItem_FireFlower = 0x1 , cInventoryItem_SuperStar = 0x2 , cInventoryItem_IceFlower = 0x3 ,
  cInventoryItem_Propeller = 0x5 , cInventoryItem_Mini = 0x6 , cInventoryItem_Penguin = 0x7 , cInventoryItem_Acorn = 0x8 ,
  cInventoryItem_PAcorn = 0x9 , cInventoryItem_None = 0xE
}

Public Member Functions

u8 getLastSlot () const

Public Attributes

Header header
SaveSlots main_slots
SaveSlots quick_save_slots
ChallengeData challenge
BoostRushData boost_rush
CoinEditData coin_edit
Statistics statistics
MiiData mii

Member Enumeration Documentation

◆ WorldCompletionFlag

Enumerator
cWorldCompletionFlag_Opening 
cWorldCompletionFlag_1 
cWorldCompletionFlag_2 
cWorldCompletionFlag_3 
cWorldCompletionFlag_4 
cWorldCompletionFlag_5 
cWorldCompletionFlag_6 
cWorldCompletionFlag_7 
cWorldCompletionFlag_8 
cWorldCompletionFlag_All 

◆ GameCompletionFlag

Enumerator
cGameCompletionFlag_Unknown1 
cGameCompletionFlag_AllLevels 
cGameCompletionFlag_Unknown2 
cGameCompletionFlag_AllStarCoins 
cGameCompletionFlag_AllExits 

◆ ChibiYoshiAvailableFlag

Enumerator
cChibiYoshiAvailableFlag_World1 
cChibiYoshiAvailableFlag_World3 
cChibiYoshiAvailableFlag_World4 
cChibiYoshiAvailableFlag_World6 
cChibiYoshiAvailableFlag_All 

◆ ActiveChibiYoshi

Enumerator
cActiveChibiYoshi_World1 
cActiveChibiYoshi_World3 
cActiveChibiYoshi_World4 
cActiveChibiYoshi_World6 
cActiveChibiYoshi_None 

◆ LevelCompletionFlag

Enumerator
cLevelCompletionFlag_Unlocked 
cLevelCompletionFlag_PlayedOnce 
cLevelCompletionFlag_BeatenOtehonReplay 
cLevelCompletionFlag_SecretBeatenOtehonReplay 
cLevelCompletionFlag_BeatenReserved 

Cleared but never set.

cLevelCompletionFlag_SecretBeatenReserved 

Cleared but never set.

cLevelCompletionFlag_Beaten 
cLevelCompletionFlag_SecretBeaten 

◆ LevelStarCoinFlag

Enumerator
cLevelStarCoinFlag_None 
cLevelStarCoinFlag_All 

◆ InventoryItem

Enumerator
cInventoryItem_Mushroom 
cInventoryItem_FireFlower 
cInventoryItem_SuperStar 
cInventoryItem_IceFlower 
cInventoryItem_Propeller 
cInventoryItem_Mini 
cInventoryItem_Penguin 
cInventoryItem_Acorn 
cInventoryItem_PAcorn 
cInventoryItem_None 

Member Function Documentation

◆ getLastSlot()

u8 SaveData::getLastSlot ( ) const
inline

Member Data Documentation

◆ header

Header SaveData::header

◆ main_slots

SaveSlots SaveData::main_slots

◆ quick_save_slots

SaveSlots SaveData::quick_save_slots

◆ challenge

ChallengeData SaveData::challenge

◆ boost_rush

BoostRushData SaveData::boost_rush

◆ coin_edit

CoinEditData SaveData::coin_edit

◆ statistics

Statistics SaveData::statistics

◆ mii

MiiData SaveData::mii