Exemplo n.º 1
0
        public EntityModelRenderer(MinecraftGeometry geometry, PooledTexture2D texture)
        {
            Texture = texture;

            var cubes = new Dictionary <string, ModelBone>();

            var converted = geometry.Convert();

            if (converted != null)
            {
                Cache(converted, cubes);
            }
            else
            {
                Cache(geometry, cubes);
            }

            Bones = cubes;
        }