Implemented Loadout selection item buttons, corrected inventory window missing category variables, corrected loadout item selection logic, updated inventory window layout.

This commit is contained in:
2023-11-14 23:20:13 -06:00
parent 0c9a341e89
commit f427928ca6
19 changed files with 289 additions and 87 deletions
+6
View File
@@ -90,6 +90,7 @@ private:
bool encounterStarted=false;
int totalBossEncounterMobs=0;
int chapter=1; //We start at chapter 1.
std::array<Item,3>loadout;
std::vector<Monster>monstersToBeSpawned;
@@ -169,6 +170,11 @@ public:
MapTag GetCurrentMap();
int GetCurrentChapter();
void SetChapter(int chapter);
Item&GetLoadoutItem(int slot);
void SetLoadoutItem(int slot,std::string itemName);
void UseLoadoutItem(int slot);
//Blanks out this loadout item.
void ClearLoadoutItem(int slot);
struct TileGroupData{
vi2d tilePos;