the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 54 lines 1.3 kB view raw
1#pragma once 2#include "DLCFile.h" 3 4class DLCAudioFile : public DLCFile 5{ 6 7public: 8 9 // If you add to the Enum,then you need to add the array of type names 10 // These are the names used in the XML for the parameters 11 enum EAudioType 12 { 13 e_AudioType_Invalid = -1, 14 15 e_AudioType_Overworld = 0, 16 e_AudioType_Nether, 17 e_AudioType_End, 18 19 e_AudioType_Max, 20 }; 21 enum EAudioParameterType 22 { 23 e_AudioParamType_Invalid = -1, 24 25 e_AudioParamType_Cuename = 0, 26 e_AudioParamType_Credit, 27 28 e_AudioParamType_Max, 29 30 }; 31 static WCHAR *wchTypeNamesA[e_AudioParamType_Max]; 32 33 DLCAudioFile(const wstring &path); 34 35 virtual void addData(PBYTE pbData, DWORD dwBytes); 36 virtual PBYTE getData(DWORD &dwBytes); 37 38 bool processDLCDataFile(PBYTE pbData, DWORD dwLength); 39 int GetCountofType(DLCAudioFile::EAudioType ptype); 40 wstring &GetSoundName(int iIndex); 41 42private: 43 using DLCFile::addParameter; 44 45 PBYTE m_pbData; 46 DWORD m_dwBytes; 47 static const int CURRENT_AUDIO_VERSION_NUM=1; 48 //unordered_map<int, wstring> m_parameters; 49 vector<wstring> m_parameters[e_AudioType_Max]; 50 51 // use the EAudioType to order these 52 void addParameter(DLCAudioFile::EAudioType type, DLCAudioFile::EAudioParameterType ptype, const wstring &value); 53 DLCAudioFile::EAudioParameterType getParameterType(const wstring &paramName); 54};