Ejemplo n.º 1
0
            public void LoadFromTexture(Texture2D Texture)
            {
                Data = new Overworld.MapData[Texture.Width, Texture.Height];
                var colorData = new Color[Texture.Width * Texture.Height];

                GameState.Game.GraphicsDevice.BlendState = BlendState.NonPremultiplied;
                Texture.GetData(colorData);
                Overworld.DecodeSaveTexture(Data, Texture.Width, Texture.Height, colorData);
            }