20 lines
490 B
C#
20 lines
490 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))]
|
|
internal partial class SerializedSceneContext : JsonSerializerContext
|
|
{
|
|
|
|
}
|
|
} |