예제 #1
0
        private void loadBlock(BlockDataJson blockData)
        {
            BlockData block = blockData.block;

            ResourceManager.AddBlock(
                block.id,
                Sprite.Single(ResourceManager.GetTexture(block.textureName),
                              Vector2.One),
                block.name,
                block.hardness,
                (float)block.endurance,
                (block.color[0] * 0.01f, block.color[1] * 0.01f, block.color[2] * 0.01f),
                (float)block.exp);
        }