#pragma once #include "stdafx.h" #include "HdData.h" class HdPackLoader { public: static bool LoadHdNesPack(string hdPackDefinitionFile, HdPackData &data); private: HdPackData* _data; string _hdPackDefinitionFile; string _hdPackFolder; vector _hdNesBitmaps; HdPackLoader(string hdPackDefinitionFile, HdPackData *data); bool LoadPack(); void InitializeHdPack(); void LoadCustomPalette(); void ProcessPatchTag(vector &tokens); void ProcessConditionTag(vector &tokens); void ProcessTileTag(vector &tokens, vector conditions); void ProcessBackgroundTag(vector &tokens, vector conditions); void ProcessOptionTag(vector& tokens); vector ParseConditionString(string conditionString, vector> &conditions); };