the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3typedef struct
4{
5 wchar_t *wchFilename;
6 eFileExtensionType eEXT;
7 eTMSFileType eTMSType;
8 PBYTE pbData;
9 UINT uiSize;
10 int iConfig; // used for texture pack data files
11}
12TMS_FILE;
13
14typedef struct
15{
16 PBYTE pbData;
17 DWORD dwBytes;
18 BYTE ucRefCount;
19}
20MEMDATA,*PMEMDATA;
21
22typedef struct
23{
24 DWORD dwNotification;
25 UINT uiParam;
26}
27NOTIFICATION,*PNOTIFICATION;
28
29typedef struct
30{
31 bool bSettingsChanged;
32 unsigned char ucMusicVolume;
33 unsigned char ucSoundFXVolume;
34 unsigned char ucSensitivity;
35 unsigned char ucGamma;
36 unsigned char ucPad01; // 1 byte of padding inserted here
37 unsigned short usBitmaskValues; // bit 0,1 - difficulty
38 // bit 2 - view bob
39 // bit 3 - player visible in a map
40 // bit 4,5 - control scheme
41 // bit 6 - invert look
42 // bit 7 - southpaw
43 // bit 8 - splitscreen vertical
44
45 // 4J-PB - Adding new values for interim TU for 1.6.6
46 // bit 9 - Display gamertags in splitscreen
47 // bit 10 - Disable/Enable hints
48 // bit 11,12,13,14 - Autosave frequency - 0 = Off, 8 = (8*15 minutes) = 2 hours
49 // bit 15 Tooltips
50
51 // debug values
52 unsigned int uiDebugBitmask;
53
54 // block off space to use for whatever we want (e.g bitflags for storing things the player has done in the game, so we can flag the first time they do things, such as sleep)
55 union
56 {
57 struct
58 {
59 unsigned char ucTutorialCompletion[TUTORIAL_PROFILE_STORAGE_BYTES];
60 // adding new flags for interim TU to 1.6.6
61
62 // A value that encodes the skin that the player has set as their default
63 DWORD dwSelectedSkin;
64
65 // In-Menu sensitivity
66 unsigned char ucMenuSensitivity;
67 unsigned char ucInterfaceOpacity;
68 unsigned char ucPad02;//2 bytes of padding added here
69 unsigned char usPad03;
70
71 // Adding another bitmask flag for more settings for 1.8.2
72 unsigned int uiBitmaskValues; // 0x00000001 - eGameSetting_Clouds - on
73 // 0x00000002 - eGameSetting_GameSetting_Online - on
74 // 0x00000004 - eGameSetting_GameSetting_Invite - off
75 // 0x00000008 - eGameSetting_GameSetting_FriendsOfFriends - on
76 // 0x00000010 - eGameSetting_PSVita_NetworkModeAdhoc - on
77
78 // TU 5
79 // 0x00000030 - eGameSetting_DisplayUpdateMessage - 3 - counts down to zero
80 // TU 6
81 // 0x00000040 - eGameSetting_BedrockFog - off
82 // 0x00000080 - eGameSetting_DisplayHUD - on
83 // 0x00000100 - eGameSetting_DisplayHand - on
84 // TU 7
85 // 0x00000200 - eGameSetting_CustomSkinAnim - on
86
87 // TU9 // 0x00000400 - eGameSetting_DeathMessages - on
88
89 // Adding another bitmask to store "special" completion tasks for the tutorial
90 unsigned int uiSpecialTutorialBitmask;
91
92 // A value that encodes the cape that the player has set
93 DWORD dwSelectedCape;
94
95 unsigned int uiFavoriteSkinA[MAX_FAVORITE_SKINS];
96 unsigned char ucCurrentFavoriteSkinPos;
97
98 // TU13
99 unsigned int uiMashUpPackWorldsDisplay; // bitmask to enable/disable the display of the individual mash-up pack worlds
100
101 // PS3 1.05 - Adding Greek, so need a language
102 unsigned char ucLanguage;
103
104 // 29/Oct/2014 - Language selector.
105 unsigned char ucLocale;
106
107 // 4J Stu - See comment for GAME_SETTINGS_PROFILE_DATA_BYTES below
108 // was 192
109 //unsigned char ucUnused[192-TUTORIAL_PROFILE_STORAGE_BYTES-sizeof(DWORD)-sizeof(char)-sizeof(char)-sizeof(char)-sizeof(char)-sizeof(LONG)-sizeof(LONG)-sizeof(DWORD)];
110 // 4J-PB - don't need to define the padded space, the union with ucReservedSpace will make the sizeof GAME_SETTINGS correct
111 };
112
113 unsigned char ucReservedSpace[192];
114
115
116 };
117}
118GAME_SETTINGS;
119
120#ifdef _XBOX_ONE
121typedef struct
122{
123 WCHAR wchPlayerUID[64];
124 char pszLevelName[14];
125}
126BANNEDLISTDATA,*PBANNEDLISTDATA;
127#else
128typedef struct
129{
130 PlayerUID xuid;
131 char pszLevelName[14];
132}
133BANNEDLISTDATA,*PBANNEDLISTDATA;
134#endif
135
136typedef std::vector <PBANNEDLISTDATA> VBANNEDLIST;
137
138typedef struct
139{
140 int iPad;
141 eXuiAction action;
142}
143XuiActionParam;
144
145// tips
146typedef struct
147{
148 int iSortValue;
149 UINT uiStringID;
150}
151TIPSTRUCT;
152
153
154typedef struct
155{
156 eXUID eXuid;
157 WCHAR wchCape[MAX_CAPENAME_SIZE];
158 WCHAR wchSkin[MAX_CAPENAME_SIZE];
159}
160MOJANG_DATA;
161
162typedef struct
163{
164 eDLCContentType eDLCType;
165#if defined( __PS3__) || defined(__ORBIS__) || defined (__PSVITA__)
166 char chImageURL[256];//SCE_NP_COMMERCE2_URL_LEN
167#else
168
169#ifdef _XBOX_ONE
170
171 wstring wsProductId;
172 wstring wsDisplayName;
173
174 // add a store for the local DLC image
175 PBYTE pbImageData;
176 DWORD dwImageBytes;
177#else
178 ULONGLONG ullOfferID_Full;
179 ULONGLONG ullOfferID_Trial;
180#endif
181 WCHAR wchBanner[MAX_BANNERNAME_SIZE];
182 WCHAR wchDataFile[MAX_BANNERNAME_SIZE];
183 int iGender;
184#endif
185 int iConfig;
186 unsigned int uiSortIndex;
187}
188DLC_INFO;
189
190
191typedef struct
192{
193 int x,z;
194 _eTerrainFeatureType eTerrainFeature;
195}
196FEATURE_DATA;
197
198// banned list
199typedef struct
200{
201 BYTE *pBannedList;
202 DWORD dwBytes;
203}
204BANNEDLIST;
205
206typedef struct _DLCRequest
207{
208 DWORD dwType;
209 eDLCContentState eState;
210}
211DLCRequest;
212
213typedef struct _TMSPPRequest
214{
215 eTMSContentState eState;
216 eDLCContentType eType;
217 C4JStorage::eGlobalStorage eStorageFacility;
218 C4JStorage::eTMS_FILETYPEVAL eFileTypeVal;
219 //char szFilename[MAX_TMSFILENAME_SIZE];
220#ifdef _XBOX_ONE
221 int( *CallbackFunc)(LPVOID,int,int,LPVOID, WCHAR *);
222#else
223 int( *CallbackFunc)(LPVOID,int,int,C4JStorage::PTMSPP_FILEDATA, LPCSTR szFilename);
224#endif
225 WCHAR wchFilename[MAX_TMSFILENAME_SIZE];
226
227 LPVOID lpCallbackParam;
228}
229TMSPPRequest;
230
231typedef pair<EUIScene, HXUIOBJ> SceneStackPair;