fixed up pipeline extension process because monogame is weird.
This commit is contained in:
@@ -4,13 +4,14 @@ using System.Text;
|
||||
|
||||
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
|
||||
{
|
||||
[ContentProcessor(DisplayName = "Texture Atlas Processor - RecrownedAthenaeum")]
|
||||
class TextureAtlasProcessor : ContentProcessor<TextureAtlasData, byte[]>
|
||||
[ContentProcessor(DisplayName = "Texture Atlas - RecrownedAthenaeum")]
|
||||
class TextureAtlasProcessor : ContentProcessor<string, TextureAtlasData>
|
||||
{
|
||||
public override byte[] Process(TextureAtlasData input, ContentProcessorContext context)
|
||||
public override TextureAtlasData Process(string input, ContentProcessorContext context)
|
||||
{
|
||||
string serialized = JsonConvert.SerializeObject(input);
|
||||
return Encoding.UTF8.GetBytes(serialized);
|
||||
TextureAtlasData textureAtlasData = JsonConvert.DeserializeObject<TextureAtlasData>(input);
|
||||
context.AddDependency(textureAtlasData.textureName);
|
||||
return textureAtlasData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user