I have these 2 fairly large arrays, one with pointers and one with strings to id them so I can access them with int z being their index. I occasionally come back to them to do stuff with it.
//LUTs(names start, names end, descriptions strart, descriptions end)
UInt32[,] multiPointer = {{0x81656650, 0x816571F8, 0x816571FC, 0x81657DA4},//item
{0x81671DE0, 0x81671FE8, 0x81672820, 0x81672A28},//chest
{0x81671FEC, 0x816721DC, 0x81672A2C, 0x81672C1C},//arm
{0x816721E0, 0x816723D4, 0x81672C20, 0x81672E14},//waist
{0x816723D8, 0x816725C8, 0x81672E18, 0x81673008},//legging
{0x816725CC, 0x816727FC, 0x8167300C, 0x8167323C},//headgear
{0x81672800, 0x8167281C, 0x81673240, 0x8167325C},//talisman
{0x81666B20, 0x81666C94, 0x81667290, 0x81667404},//GS
{0x81666C98, 0x81666E04, 0x81667408, 0x81667574},//SnS
{0x81666E08, 0x81666F5C, 0x81667578, 0x816676CC},//hammer
{0x81667108, 0x8166728C, 0x81667878, 0x816679FC},//lance
{0x81670600, 0x8167064C, 0x816706F4, 0x81670740},//bg frame
{0x816705B0, 0x816705FC, 0x816706A4, 0x816706F0},//bg barrel
{0x81670650, 0x816706A0, 0x81670744, 0x81670794},//bg stock
{0x81666F60, 0x8166700C, 0x816676D0, 0x8166777C},//LS
{0x81667010, 0x81667104, 0x81667780, 0x81667874},//SwA
{0x8168423C, 0x816842DC, 0x0,0x0},//monster
{0x816856F8, 0x816858CC, 0x816858D0, 0x81685AA4},//title
{0x81656FEC, 0x816571F8, 0x0, 0x0}//decorations
};
string[] stuff = { "Item",
"Chest",
"Arm",
"Waist",
"Legging",
"Headgear",
"Talisman",
"Great Sword",
"Sword and Shield",
"Hammer", "Lance",
"Bowgun Frame",
"Bowgun Barrel",
"Bowgun Stock",
"Longsword",
"Switch Axe",
"Monster",
"Title",
"Decorations"
};
Sorry about the terrible names. Before they were 5 different arrays until I learned about multidimensional arrays. But then I can’t combine the strings with the hex. Is there a way to combine these 2 arrays so that it looks neater?
Create a class that contains a
stringand 4UInt32Now you can create an array of
Item:And so on…