removed compression step, added ninepatch stuff to pipeline.
This commit is contained in:
25
RecrownedAthenaeum.Pipeline/NinePatch/NinePatchWriter.cs
Normal file
25
RecrownedAthenaeum.Pipeline/NinePatch/NinePatchWriter.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Microsoft.Xna.Framework.Content.Pipeline;
|
||||
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RecrownedAthenaeum.Pipeline.NinePatch
|
||||
{
|
||||
[ContentTypeWriter]
|
||||
class NinePatchWriter : ContentTypeWriter<byte[]>
|
||||
{
|
||||
public override string GetRuntimeReader(TargetPlatform targetPlatform)
|
||||
{
|
||||
return "RecrownedAthenaeum.Pipeline, NinePatchDataReader";
|
||||
}
|
||||
|
||||
protected override void Write(ContentWriter output, byte[] value)
|
||||
{
|
||||
output.Write(value.Length);
|
||||
output.Write(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user