refactors and added forgotten semicolon :/

This commit is contained in:
2019-01-20 01:07:52 -06:00
parent 9392124317
commit 6fdcdcf923
11 changed files with 42 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Newtonsoft.Json;
using RecrownedAthenaeum.Serializable;
using RecrownedAthenaeum.Data;
using RecrownedAthenaeum.SpecialTypes;
namespace RecrownedAthenaeum.Pipeline
@@ -12,7 +12,7 @@ namespace RecrownedAthenaeum.Pipeline
{
string serialized = input.ReadString();
TextureAtlasData atlasData = JsonConvert.DeserializeObject<TextureAtlasData>(serialized);
Texture2D atlasTexture = input.ContentManager.Load<Texture2D>(atlasData.textureName)
Texture2D atlasTexture = input.ContentManager.Load<Texture2D>(atlasData.textureName);
TextureAtlas atlas = new TextureAtlas(atlasTexture, GenerateAtlasRegionsFromData(atlasData, atlasTexture));
return atlas;