im making a game and i want a three dimensional grid (probably around like 20x20x20 or so, likely less) that'll hold blocks/pre-defined items. (i promise this isnt minecraft slop 😭)
i've been thinking of methods on how to do it, but im dumb so like im asking what would be the best way to do this
context: objects will probably be internally referred to with a struct or smth (position relative to center/pivot), with their definitions probably just being ints (or int adjacent idk man theres like 20 different number types in c#).
performance target is preferably low-end pcs/chromebooks