So I mainly code in pawn the San Andreas Multiplayer scripting language and have basic knowledge in C# and javascript and I use play maker for some basic networking stuff.
I’m currently scripting an inventory system for an open world zombie survival game I’m working on and need some guidance.
In Pawn you can use this type of code to determine the inventory system and item names.
enum ItemLIST
{
ItemID,
Name[128],
Q,
ObjectID,
}
new ItemIDs[][ItemLIST] = {
{0, "NULL", 0, 0},
{1, "Brassknuckles", 0, 331}, //30
{2, "Golfclub", 0, 333}, //70
{3, "Nitestick", 0, 334}, //40
{4, "Knife", 9, 335}, //10
{5, "Baseball Bat", 0, 336}, //30
{6, "Shovel", 0, 337}, //40
{7, "Poolstick", 0, 338}, //75
{8, "Katana", 0, 339}, //100
{9, "Chainsaw", 0, 341}, //500
{10, "Dildo", 0, 321}, //20
{11, "Dildo 2", 0, 322}, //20
{12, "Vibrator", 0, 323}, //30
{13, "Vibrator 2", 0, 324}, //30
{14, "Flowers", 0, 325}, //10
{15, "Cane", 0, 326}, //10
{16, "Frag Grenade", 0, 342},
{17, "Tear Gas Grenade", 0, 343}, //450
{22, "M1911", 0, 346}, // 350
{23, "M1911 (SILENCED)", 0, 347}, // 500
{24, "Desert Eagle", 0, 348}, // 800
{25, "Shotgun", 0, 349}, // 450
{26, "Sawnoff Shotgun", 0, 350}, // 500
{27, "Spas12", 0, 351},
{28, "Micro Uzi", 0, 352}, // 650
{29, "HK MP5", 0, 353}, // 900
{30, "AK-47", 0, 355}, //1100
{31, "M4A1", 0, 356},
{32, "Tec-9", 0, 372}
}
I was wondering if I could possibly do the same in C# and if so how would it look?