mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
24 lines
809 B
C#
24 lines
809 B
C#
using System;
|
|
using Microsoft.Xna.Framework.Content.Pipeline;
|
|
using MonoGame.Extended.TextureAtlases;
|
|
|
|
namespace MonoGame.Extended.Content.Pipeline.TextureAtlases
|
|
{
|
|
[ContentProcessor(DisplayName = "TexturePacker Processor - MonoGame.Extended")]
|
|
public class TexturePackerProcessor : ContentProcessor<TexturePackerFile, TexturePackerProcessorResult>
|
|
{
|
|
public override TexturePackerProcessorResult Process(TexturePackerFile input, ContentProcessorContext context)
|
|
{
|
|
try
|
|
{
|
|
var output = new TexturePackerProcessorResult {Data = input};
|
|
return output;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
context.Logger.LogMessage("Error {0}", ex);
|
|
throw;
|
|
}
|
|
}
|
|
}
|
|
} |