mirror of
https://github.com/YimMenu/RDR-Classes.git
synced 2024-12-22 14:37:30 +08:00
Added maps for data lookup (#28)
This commit is contained in:
parent
7c78535a48
commit
524735c61b
@ -10,6 +10,13 @@ enum class CampState
|
||||
CLEANUP
|
||||
};
|
||||
|
||||
inline std::map<CampState, std::string> g_CampStateMap = {
|
||||
{CampState::INVALID, "Invalid"},
|
||||
{CampState::WAITING, "Waiting"},
|
||||
{CampState::RUNNING, "Running"},
|
||||
{CampState::CLEANUP, "Cleanup"}
|
||||
};
|
||||
|
||||
enum class CampLocationIndex : std::uint32_t
|
||||
{
|
||||
GRIZZLIES_CAMP = rage::joaat("GRIZZLIES_CAMP"),
|
||||
@ -27,6 +34,22 @@ enum class CampLocationIndex : std::uint32_t
|
||||
TALL_TREES_CAMP = rage::joaat("TALL_TREES_CAMP"),
|
||||
};
|
||||
|
||||
inline std::map<CampLocationIndex, std::string> g_CampLocationMap = {
|
||||
{CampLocationIndex::GRIZZLIES_CAMP, "Grizzlies"},
|
||||
{CampLocationIndex::BAYOU_NAWAS_CAMP, "Bayou Nawas"},
|
||||
{CampLocationIndex::BIG_VALLEY_CAMP, "Big Valley"},
|
||||
{CampLocationIndex::CHOLLA_SPRINGS_CAMP, "Cholla Springs"},
|
||||
{CampLocationIndex::CUMBERLAND_FOREST_CAMP, "Cumberland Forest"},
|
||||
{CampLocationIndex::GAPTOOTH_RIDGE_CAMP, "Gaptooth Ridge"},
|
||||
{CampLocationIndex::GREAT_PLAINS_CAMP, "Great Plains"},
|
||||
{CampLocationIndex::HEARTLAND_CAMP, "Heartland"},
|
||||
{CampLocationIndex::HENNIGANS_STEAD_CAMP, "Hennigans Stead"},
|
||||
{CampLocationIndex::RIO_BRAVO_CAMP, "Rio Bravo"},
|
||||
{CampLocationIndex::ROANOKE_RIDGE_CAMP, "Roanoke Ridge"},
|
||||
{CampLocationIndex::SCARLETT_MEADOWS_CAMP, "Scarlett Meadows"},
|
||||
{CampLocationIndex::TALL_TREES_CAMP, "Tall Trees"}
|
||||
};
|
||||
|
||||
enum class CampBit
|
||||
{
|
||||
IS_LAUNCHED,
|
||||
@ -44,6 +67,22 @@ enum class CampBit
|
||||
WHITE_FLAG_LOCKED_FOR_CONTENT
|
||||
};
|
||||
|
||||
inline std::map<CampBit, std::string> g_CampBitMap = {
|
||||
{CampBit::IS_LAUNCHED, "Is Launched"},
|
||||
{CampBit::IS_ATTACKING, "Is Attacking"},
|
||||
{CampBit::IS_ACTIVE, "Is Active"},
|
||||
{CampBit::BLIP_DISABLED, "Blip Disabled"},
|
||||
{CampBit::WHITE_FLAG_RAISED, "White Flag Raised"},
|
||||
{CampBit::WHITE_FLAG_LOCKED_LOWERED, "White Flag Locked Lowered"},
|
||||
{CampBit::SHOW_BLIPS_HIDDEN, "Show Blips Hidden"},
|
||||
{CampBit::IS_FOLLOWER_STOLEN, "Is Follower Stolen"},
|
||||
{CampBit::SUPPRESS_FOLLOWER, "Suppress Follower"},
|
||||
{CampBit::FOLLOWER_DEAD, "Follower Dead"},
|
||||
{CampBit::IS_CAMPWORKS_LAUNCHED, "Is Campworks Launched"},
|
||||
{CampBit::WHITE_FLAG_RAISED_PRE_CONTENT, "White Flag Raised Pre Content"},
|
||||
{CampBit::WHITE_FLAG_LOCKED_FOR_CONTENT, "White Flag Locked For Content"}
|
||||
};
|
||||
|
||||
enum class CampContentType
|
||||
{
|
||||
NONE,
|
||||
@ -53,6 +92,14 @@ enum class CampContentType
|
||||
CAMP_RAID
|
||||
};
|
||||
|
||||
inline std::map<CampContentType, std::string> g_CampContentTypeMap = {
|
||||
{CampContentType::NONE, "None"},
|
||||
{CampContentType::NET_BEAT, "Net Beat"},
|
||||
{CampContentType::DYNAMIC_MISSION, "Dynamic Mission"},
|
||||
{CampContentType::TRADER_MISSION, "Trader Mission"},
|
||||
{CampContentType::CAMP_RAID, "Camp Raid"}
|
||||
};
|
||||
|
||||
struct CAMP_LOCATION
|
||||
{
|
||||
SCR_INT Size; // tents and the main camp
|
||||
|
@ -355,6 +355,151 @@ enum class Region
|
||||
MAX
|
||||
};
|
||||
|
||||
inline std::map<Region, std::string> g_RegionMap = {
|
||||
{ Region::INVALID, "Invalid" },
|
||||
{ Region::BAY_CRAWDADWILLIES, "Crawdad Willies" },
|
||||
{ Region::BAY_MACOMBS_END, "Macomb's End" },
|
||||
{ Region::BAY_MERKINSWALLER, "Merkins Waller" },
|
||||
{ Region::BAY_LAGRAS, "Lagras" },
|
||||
{ Region::BAY_LAKAY, "Lakay" },
|
||||
{ Region::BAY_SAINT_DENIS, "Saint Denis" },
|
||||
{ Region::BAY_ORANGE_PLANTATION, "Orange Plantation" },
|
||||
{ Region::BAY_SERIAL_KILLER, "Serial Killer" },
|
||||
{ Region::BAY_SERENDIPITY, "Serendipity" },
|
||||
{ Region::BAY_SHADYBELLE, "Shady Belle" },
|
||||
{ Region::BAY_SILTWATERSTRAND, "Siltwater Strand" },
|
||||
{ Region::BGV_APPLESEEDTIMBER, "Appleseed Timber" },
|
||||
{ Region::BGV_BERYLS_DREAM, "Beryl's Dream" },
|
||||
{ Region::BGV_BLACKBONEFOREST_TRAPPER, "Blackbone Forest Trapper" },
|
||||
{ Region::BGV_DAKOTARIVER_TRAPPER, "Dakota River Trapper" },
|
||||
{ Region::BGV_FORTRIGGS, "Fort Riggs" },
|
||||
{ Region::BGV_HANGINGDOG, "Hanging Dog" },
|
||||
{ Region::BGV_LONEMULESTEAD, "Lone Mule Stead" },
|
||||
{ Region::BGV_MISSING_HUSBAND, "Missing Husband" },
|
||||
{ Region::BGV_MONTO_REST, "Monto Rest" },
|
||||
{ Region::BGV_OWANJILA_DAM, "Owanjila Dam" },
|
||||
{ Region::BGV_PAINTEDSKY, "Painted Sky" },
|
||||
{ Region::BGV_PRONGHORN, "Pronghorn" },
|
||||
{ Region::BGV_RIGGS_STATION, "Riggs Station" },
|
||||
{ Region::BGV_SHACK, "Shack" },
|
||||
{ Region::BGV_SHEPHERDS_RISE, "Shepherd's Rise" },
|
||||
{ Region::BGV_STRAWBERRY, "Strawberry" },
|
||||
{ Region::BGV_VALLEY_VIEW, "Valley View" },
|
||||
{ Region::BGV_WALLACE_STATION, "Wallace Station" },
|
||||
{ Region::BGV_OLD_MAN_JONES, "Old Man Jones" },
|
||||
{ Region::BGV_WATSONSCABIN, "Watson's Cabin" },
|
||||
{ Region::BLU_CANEBREAK_MANOR, "Canebreak Manor" },
|
||||
{ Region::BLU_COPPERHEAD, "Copperhead" },
|
||||
{ Region::BLU_SISIKA, "Sisika" },
|
||||
{ Region::BLU_TRAVELLING_SALESMAN, "Travelling Salesman" },
|
||||
{ Region::CML_BACCHUSBRIDGE, "Bacchus Bridge" },
|
||||
{ Region::CML_DINO_LADY, "Dino Lady" },
|
||||
{ Region::CML_OLDFORTWALLACE, "Old Fort Wallace" },
|
||||
{ Region::CML_SIXPOINTCABIN, "Six Point Cabin" },
|
||||
{ Region::GRT_BEECHERS, "Beechers" },
|
||||
{ Region::GRT_BLACKWATER, "Blackwater" },
|
||||
{ Region::GRT_QUAKERS_COVE, "Quakers Cove" },
|
||||
{ Region::GRZ_ADLERRANCH, "Adler Ranch" },
|
||||
{ Region::GRZ_DEAD_RIVAL, "Dead Rival" },
|
||||
{ Region::GRZ_CHEZPORTER, "Chez Porter" },
|
||||
{ Region::GRZ_COLTER, "Colter" },
|
||||
{ Region::GRZ_FROZEN_EXPLORER, "Frozen Explorer" },
|
||||
{ Region::GRZ_MILLESANI_CLAIM, "Millesani Claim" },
|
||||
{ Region::GRZ_MOUNTAIN_MAN, "Mountain Man" },
|
||||
{ Region::GRZ_MOUNT_HAGEN_PEAK, "Mount Hagen Peak" },
|
||||
{ Region::GRZ_STARVING_CHILDREN, "Starving Children" },
|
||||
{ Region::GRZ_TEMPEST_RIM, "Tempest Rim" },
|
||||
{ Region::GRZ_WINTERMINING_TOWN, "Winter Mining Town" },
|
||||
{ Region::GRZ_CALUMETRAVINE, "Calumet Ravine" },
|
||||
{ Region::GRE_CIVIL_WAR_BRIDE, "Gre Civil War Bride" },
|
||||
{ Region::GRZ_COHUTTA, "Cohutta" },
|
||||
{ Region::GRZ_COTORRA_SPRINGS, "Cotorra Springs" },
|
||||
{ Region::GRZ_GUNFIGHT, "Gunfight" },
|
||||
{ Region::GRZ_THELOFT, "The Loft" },
|
||||
{ Region::GRE_VETERAN, "Gre Veteran" },
|
||||
{ Region::GRZ_WAPITI, "Wapiti" },
|
||||
{ Region::GRZ_TRAVELLING_SALESMAN, "Travelling Salesman" },
|
||||
{ Region::GUA_AGUASDULCES, "Aguas Dulces" },
|
||||
{ Region::GUA_CAMP, "Camp" },
|
||||
{ Region::GUA_CINCOTORRES, "Cinco Torres" },
|
||||
{ Region::GUA_LACAPILLA, "La Capilla" },
|
||||
{ Region::GUA_MANICATO, "Manicato" },
|
||||
{ Region::HRT_ABANDONED_MILL, "Abandoned Mill" },
|
||||
{ Region::ROA_BEECHERS_C, "Beecher's C" },
|
||||
{ Region::HRT_CARMODYDELL, "Carmody Dell" },
|
||||
{ Region::HRT_CORNWALLKEROSENE, "Cornwall Kerosene" },
|
||||
{ Region::HRT_CROP_FARM, "Crop Farm" },
|
||||
{ Region::HRT_CUMBERLANDFALLS, "Cumberland Falls" },
|
||||
{ Region::HRT_DOWNSRANCH, "Downs Ranch" },
|
||||
{ Region::HRT_EMERALDRANCH, "Emerald Ranch" },
|
||||
{ Region::HRT_GRANGERS_HOGGERY, "Granger's Hoggery" },
|
||||
{ Region::HRT_HORSESHOEOVERLOOK, "Horseshoe Overlook" },
|
||||
{ Region::HRT_LARNEDSOD, "Larned Sod" },
|
||||
{ Region::HRT_LOONY_CULT, "Loony Cult" },
|
||||
{ Region::HRT_LUCKYSCABIN, "Lucky's Cabin" },
|
||||
{ Region::HRT_SWANSONS_STATION, "Swanson's Station" },
|
||||
{ Region::HRT_VALENTINE, "Valentine" },
|
||||
{ Region::ROA_ABERDEENPIGFARM, "Aberdeen Pig Farm" },
|
||||
{ Region::ROA_ANNESBURG, "Annesburg" },
|
||||
{ Region::ROA_BEAVERHOLLOW, "Beaver Hollow" },
|
||||
{ Region::ROA_BLACK_BALSAM_RISE, "Black Balsam Rise" },
|
||||
{ Region::ROA_BRANDYWINE_DROP, "Brandywine Drop" },
|
||||
{ Region::ROA_BUTCHERCREEK, "Butcher Creek" },
|
||||
{ Region::ROA_DOVERHILL, "Dover Hill" },
|
||||
{ Region::ROA_HAPPY_FAMILY, "Happy Family" },
|
||||
{ Region::ROA_ISOLATIONIST, "Isolationist" },
|
||||
{ Region::ROA_MACLEANSHOUSE, "Maclean's House" },
|
||||
{ Region::ROA_MOSSY_FLATS, "Mossy Flats" },
|
||||
{ Region::ROA_ROANOKE_VALLEY, "Roanoke Valley" },
|
||||
{ Region::ROA_ROCKYSEVEN, "Rocky Seven" },
|
||||
{ Region::ROA_TRAPPER, "Trapper" },
|
||||
{ Region::ROA_OLD_MAN_JONES, "Old Man Jones" },
|
||||
{ Region::ROA_VANHORNMANSION, "Van Horn Mansion" },
|
||||
{ Region::ROA_VANHORNPOST, "Van Horn Post" },
|
||||
{ Region::SCM_BRAITHWAITEMANOR, "Braithwaite Manor" },
|
||||
{ Region::SCM_BULGERGLADE, "Bulger Glade" },
|
||||
{ Region::SCM_CALIGAHALL, "Caligahall" },
|
||||
{ Region::SCM_CATFISHJACKSONS, "Catfish Jacksons" },
|
||||
{ Region::SCM_CLEMENSCOVE, "Clemens Cove" },
|
||||
{ Region::SCM_CLEMENSPOINT, "Clemens Point" },
|
||||
{ Region::SCM_COMPSONS_STEAD, "Compsons Stead" },
|
||||
{ Region::SCM_DAIRY_FARM, "Dairy Farm" },
|
||||
{ Region::SCM_HORSE_SHOP, "Horse Shop" },
|
||||
{ Region::SCM_LONNIESSHACK, "Lonnie's Shack" },
|
||||
{ Region::SCM_LOVE_TRIANGLE, "Love Triangle" },
|
||||
{ Region::SCM_RADLEYS_PASTURE, "Radley's Pasture" },
|
||||
{ Region::SCM_RHODES, "Rhodes" },
|
||||
{ Region::SCM_SLAVE_PEN, "Slave Pen" },
|
||||
{ Region::TAL_AURORA_BASIN, "Aurora Basin" },
|
||||
{ Region::TAL_DEAD_SETTLER, "Dead Settler" },
|
||||
{ Region::TAL_COCHINAY, "Cochinay" },
|
||||
{ Region::TAL_MANZANITAPOST, "Manzanita Post" },
|
||||
{ Region::TAL_PACIFICUNIONRR, "Pacific Union RR" },
|
||||
{ Region::TAL_TANNERSREACH, "Tanner's Reach" },
|
||||
{ Region::TAL_TRAPPER, "Trapper" },
|
||||
{ Region::GAP_GAPTOOTH_BREACH, "Gaptooth Breach" },
|
||||
{ Region::GAP_TUMBLEWEED, "Tumbleweed" },
|
||||
{ Region::GAP_RATHSKELLER_FORK, "Rathskeller Fork" },
|
||||
{ Region::RIO_BENEDICT_POINT, "Benedict Point" },
|
||||
{ Region::RIO_FORT_MERCER, "Fort Mercer" },
|
||||
{ Region::RIO_PLAIN_VIEW, "Plain View" },
|
||||
{ Region::RIO_TRAVELLING_SALESMAN, "Travelling Salesman" },
|
||||
{ Region::CHO_ARMADILLO, "Armadillo" },
|
||||
{ Region::CHO_COOTS_CHAPEL, "Coots Chapel" },
|
||||
{ Region::CHO_DON_JULIO_HOUSE, "Don Julio House" },
|
||||
{ Region::CHO_RILEYS_CHARGE, "Riley's Charge" },
|
||||
{ Region::CHO_RIDGEWOOD_FARM, "Ridgewood Farm" },
|
||||
{ Region::CHO_TWIN_ROCKS, "Twin Rocks" },
|
||||
{ Region::CHO_TRAVELLING_SALESMAN, "Travelling Salesman" },
|
||||
{ Region::CHO_TRAPPER, "Trapper" },
|
||||
{ Region::HEN_MACFARLANES_RANCH, "Macfarlane's Ranch" },
|
||||
{ Region::HEN_THIEVES_LANDING, "Thieves Landing" },
|
||||
{ Region::HEN_TRAVELLING_SALESMAN, "Travelling Salesman" },
|
||||
{ Region::HEN_HARRIET, "Harriet" },
|
||||
{ Region::CENTRALUNIONRR, "Central Union RR" },
|
||||
{ Region::MAX, "Max" }
|
||||
};
|
||||
|
||||
enum class District
|
||||
{
|
||||
INVALID = -1,
|
||||
@ -377,6 +522,27 @@ enum class District
|
||||
HENNIGANS_STEAD
|
||||
};
|
||||
|
||||
inline std::map<District, std::string> g_DistrictMap = {
|
||||
{ District::INVALID, "Invalid" },
|
||||
{ District::BAYOU_NWA, "Bayou Nwa" },
|
||||
{ District::BIG_VALLEY, "Big Valley" },
|
||||
{ District::BLUEGILL_MARSH, "Bluegill Marsh" },
|
||||
{ District::CUMBERLAND_FOREST, "Cumberland Forest" },
|
||||
{ District::GREAT_PLAINS, "Great Plains" },
|
||||
{ District::GRIZZLIES, "Grizzlies" },
|
||||
{ District::GRIZZLIES_EAST, "Grizzlies East" },
|
||||
{ District::GRIZZLIES_WEST, "Grizzlies West" },
|
||||
{ District::GUAMA, "Guama" },
|
||||
{ District::HEARTLAND, "Heartland" },
|
||||
{ District::ROANOKE_RIDGE, "Roanoke Ridge" },
|
||||
{ District::SCARLETT_MEADOWS, "Scarlett Meadows" },
|
||||
{ District::TALL_TREES, "Tall Trees" },
|
||||
{ District::GAPTOOTH_RIDGE, "Gaptooth Ridge" },
|
||||
{ District::RIO_BRAVO, "Rio Bravo" },
|
||||
{ District::CHOLLA_SPRINGS, "Cholla Springs" },
|
||||
{ District::HENNIGANS_STEAD, "Hennigan's Stead" }
|
||||
};
|
||||
|
||||
// seriously move this somewhere else
|
||||
enum class Language
|
||||
{
|
||||
@ -396,6 +562,23 @@ enum class Language
|
||||
CHINESE_SIMP
|
||||
};
|
||||
|
||||
inline std::map<Language, std::string> g_LanguageMap = {
|
||||
{ Language::UNDEFINED, "Undefined" },
|
||||
{ Language::ENGLISH, "English" },
|
||||
{ Language::FRENCH, "French" },
|
||||
{ Language::GERMAN, "German" },
|
||||
{ Language::ITALIAN, "Italian" },
|
||||
{ Language::SPANISH, "Spanish" },
|
||||
{ Language::PORTUGESE, "Portuguese" },
|
||||
{ Language::POLISH, "Polish" },
|
||||
{ Language::RUSSIAN, "Russian" },
|
||||
{ Language::KOREAN, "Korean" },
|
||||
{ Language::CHINESE_TRAD, "Chinese Traditional" },
|
||||
{ Language::JAPANESE, "Japanese" },
|
||||
{ Language::MEXICAN, "Mexican" },
|
||||
{ Language::CHINESE_SIMP, "Chinese Simplified" }
|
||||
};
|
||||
|
||||
enum class PassiveState
|
||||
{
|
||||
NOT_PASSIVE,
|
||||
@ -405,6 +588,14 @@ enum class PassiveState
|
||||
FORCED_FROM_PASSIVE
|
||||
};
|
||||
|
||||
inline std::map<PassiveState, std::string> g_PassiveStateMap = {
|
||||
{PassiveState::NOT_PASSIVE, "Not Passive"},
|
||||
{PassiveState::WAITING_FOR_PASSIVE, "Waiting for Passive"},
|
||||
{PassiveState::PASSIVE, "Passive"},
|
||||
{PassiveState::WAITING_FOR_NOT_PASSIVE, "Waiting to Leave Passive"},
|
||||
{PassiveState::FORCED_FROM_PASSIVE, "Forced from Passive"}
|
||||
};
|
||||
|
||||
enum class AnimalTransformationFlag
|
||||
{
|
||||
IS_ANIMAL,
|
||||
|
Loading…
Reference in New Issue
Block a user