mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-05-31 09:31:26 -04:00
use ordered map to help arrange checks in imgui
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "randomizer_check_objects.h"
|
||||
#include <unordered_map>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
@@ -13,7 +12,7 @@ typedef struct {
|
||||
std::string rcSpoilerName;
|
||||
} RandomizerCheckObject;
|
||||
*/
|
||||
std::unordered_map<RandomizerCheck, RandomizerCheckObject> rcObjects = {
|
||||
std::map<RandomizerCheck, RandomizerCheckObject> rcObjects = {
|
||||
{ RC_UNKNOWN_CHECK, {RC_UNKNOWN_CHECK, RCVORMQ_VANILLA, RCTYPE_STANDARD, RCAREA_INVALID, "Invalid Location", "Invalid Location"}},
|
||||
{ RC_KF_KOKIRI_SWORD_CHEST, {RC_KF_KOKIRI_SWORD_CHEST, RCVORMQ_VANILLA, RCTYPE_STANDARD, RCAREA_KOKIRI_FOREST, "Kokiri Sword Chest", "KF Kokiri Sword Chest"}},
|
||||
{ RC_KF_MIDOS_TOP_LEFT_CHEST, {RC_KF_MIDOS_TOP_LEFT_CHEST, RCVORMQ_VANILLA, RCTYPE_STANDARD, RCAREA_KOKIRI_FOREST, "Mido Top Left Chest", "KF Mido Top Left Chest"}},
|
||||
@@ -806,7 +805,7 @@ std::map<RandomizerCheckArea, std::string> RandomizerCheckObjects::GetAllRCAreas
|
||||
return rcAreas;
|
||||
}
|
||||
|
||||
std::unordered_map<RandomizerCheck, RandomizerCheckObject> RandomizerCheckObjects::GetAllRCObjects() {
|
||||
std::map<RandomizerCheck, RandomizerCheckObject> RandomizerCheckObjects::GetAllRCObjects() {
|
||||
return rcObjects;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include "randomizerTypes.h"
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
|
||||
// Check types based on main settings
|
||||
typedef enum {
|
||||
@@ -77,6 +76,6 @@ namespace RandomizerCheckObjects {
|
||||
bool AreaIsDungeon(RandomizerCheckArea area);
|
||||
bool AreaIsOverworld(RandomizerCheckArea area);
|
||||
std::map<RandomizerCheckArea, std::string> GetAllRCAreas();
|
||||
std::unordered_map<RandomizerCheck, RandomizerCheckObject> GetAllRCObjects();
|
||||
std::map<RandomizerCheck, RandomizerCheckObject> GetAllRCObjects();
|
||||
RandomizerCheckObject GetRCObject(RandomizerCheck check);
|
||||
}
|
||||
Reference in New Issue
Block a user