我 st忙于建立一个阶级结构,以便做到这一点:
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.
因此,我希望能够通过一块块块获得财产。
封块[5]。 财产
以及
区块.Rock.Properties
我知道这些是NOT的事例,我不得不立即向他们介绍他们的财产。