Brine2DSnapshotContext Class
Definition
Namespace: Brine2D.ECS.Serialization
Source-generated System.Text.Json.Serialization.JsonSerializerContext for the built-in snapshot types. Covers WorldSnapshot and EntitySnapshot \(and their constituent collections\) without any runtime reflection, making snapshot-level serialization fully compatible with NativeAOT and IL trimming.
C#
internal sealed class Brine2DSnapshotContext : System.Text.Json.Serialization.JsonSerializerContext, System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
Inheritance System.Object → System.Text.Json.Serialization.JsonSerializerContext → Brine2DSnapshotContext
Implements System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
Remarks
Used internally by AotEntitySerializer. Component types themselves are covered separately through each component's System.Text.Json.Serialization.Metadata.JsonTypeInfo<> supplied via Register<T>\(JsonTypeInfo<T>\).
| Properties | |
|---|---|
| Boolean | Defines the source generated JSON serialization contract metadata for a given type. |
| DateTime | Defines the source generated JSON serialization contract metadata for a given type. |
| Default | The default System.Text.Json.Serialization.JsonSerializerContext associated with a default System.Text.Json.JsonSerializerOptions instance. |
| DictionaryStringJsonElement | Defines the source generated JSON serialization contract metadata for a given type. |
| EntitySnapshot | Defines the source generated JSON serialization contract metadata for a given type. |
| GeneratedSerializerOptions | The source-generated options associated with this context. |
| Int64 | Defines the source generated JSON serialization contract metadata for a given type. |
| JsonElement | Defines the source generated JSON serialization contract metadata for a given type. |
| ListEntitySnapshot | Defines the source generated JSON serialization contract metadata for a given type. |
| ListString | Defines the source generated JSON serialization contract metadata for a given type. |
| String | Defines the source generated JSON serialization contract metadata for a given type. |
| WorldSnapshot | Defines the source generated JSON serialization contract metadata for a given type. |