Finding Index of Dictionary Key
hey guys, just joined the server so forgive me if im not asking in the right place... please direct me elsewhere if this isnt the right area
i am making an inventory system using a
does that make sense? i want to know if
i am making an inventory system using a
Dictionary<int, int> (key is for item ID, value is for how many of that item you have) and i was just curious about something:does that make sense? i want to know if
ID is already in inv so that, if it is, i add 1 to the value, and if not, i Add() the ID