24 lines
671 B
C#
24 lines
671 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace DaggerFramework.SceneGraph
|
|
{
|
|
public class SerializedScene : Resource
|
|
{
|
|
public Dictionary<string, Layer> Layers { get; set; }
|
|
|
|
public SerializedScene(string path, byte[] buffer) : base(path, buffer)
|
|
{
|
|
}
|
|
}
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true)]
|
|
[JsonSerializable(typeof(SerializedScene))]
|
|
[JsonSerializable(typeof(Dictionary<string, Layer>))]
|
|
[JsonSerializable(typeof(Entity2d))]
|
|
[JsonSerializable(typeof(Layer))]
|
|
[JsonSerializable(typeof(EntityLayer))]
|
|
internal partial class SerializedSceneContext : JsonSerializerContext
|
|
{
|
|
|
|
}
|
|
} |