blob: 6efa6964c37d8586a32c3cc8fabf08077178def5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
namespace MonoGame.Extended.Content.Pipeline.Json
{
[ContentTypeWriter]
public class JsonContentTypeWriter : ContentTypeWriter<JsonContentProcessorResult>
{
private string _runtimeType;
protected override void Write(ContentWriter writer, JsonContentProcessorResult result)
{
_runtimeType = result.ContentType;
writer.Write(result.Json);
}
public override string GetRuntimeReader(TargetPlatform targetPlatform)
{
return _runtimeType;// "MonoGame.Extended.Serialization.SpriteFactoryContentTypeReader, MonoGame.Extended";
}
public override string GetRuntimeType(TargetPlatform targetPlatform)
{
return _runtimeType;// "MonoGame.Extended.Serialization.SpriteFactoryContentTypeReader, MonoGame.Extended";
}
}
}
|