I'm stuck on creating a class architecture to do this:
I have very many (About 78) types of block. The level for the game is made of these blocks. In the level's ByteArray, there are simply numbers, denoting the type of block. So for collision handling, I can just retrieve the number at the wanted position and get that block's properties. (Solid, selectable, visible, texture). BUT. I'll be reordering this list of blocks, and so, also need a way to access a block's properties by name.
So, I'd like to be able to access a block's properties via
Blocks[5].Properties
&
Blocks.Rock.Properties
Be aware that these are NOT instances, and I shouldn't have to instantiate them to access their properties.