Table of Contents

Class PgpscnJsonContext

Namespace
PopcorningGuineaPig.Engine.Scenes
Assembly
PopcorningGuineaPig.Engine.dll
[JsonSourceGenerationOptions(PropertyNameCaseInsensitive = true, GenerationMode = JsonSourceGenerationMode.Default)]
[JsonSerializable(typeof(SceneData))]
[JsonSerializable(typeof(SceneMetadata))]
[JsonSerializable(typeof(CompatibilityInfo))]
[JsonSerializable(typeof(AssetsDefinition))]
[JsonSerializable(typeof(WorldDefinition))]
[JsonSerializable(typeof(SpawnPoint))]
[JsonSerializable(typeof(EntityDefinition))]
[JsonSerializable(typeof(TriggerVolume))]
[JsonSerializable(typeof(CameraDefinition))]
[JsonSerializable(typeof(RenderLayerDefinition))]
[JsonSerializable(typeof(UIElementDefinition))]
[JsonSerializable(typeof(RelativePositionDefinition))]
[JsonSerializable(typeof(ActionDefinition))]
[JsonSerializable(typeof(CommandDefinition))]
[JsonSerializable(typeof(ConditionDefinition))]
[JsonSerializable(typeof(BindingDefinition))]
[JsonSerializable(typeof(TransformDefinition))]
[JsonSerializable(typeof(MappingDefinition))]
[JsonSerializable(typeof(GradientStop))]
[JsonSerializable(typeof(RangeDefinition))]
[JsonSerializable(typeof(BindingSource))]
[JsonSerializable(typeof(Dictionary<string, string>))]
public class PgpscnJsonContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
PgpscnJsonContext
Implements
Inherited Members

Constructors

PgpscnJsonContext()

public PgpscnJsonContext()

PgpscnJsonContext(JsonSerializerOptions)

Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.

public PgpscnJsonContext(JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

The run time provided options for the context instance.

Properties

ActionDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<ActionDefinition> ActionDefinition { get; }

Property Value

JsonTypeInfo<ActionDefinition>

AssetsDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<AssetsDefinition> AssetsDefinition { get; }

Property Value

JsonTypeInfo<AssetsDefinition>

BindingDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<BindingDefinition> BindingDefinition { get; }

Property Value

JsonTypeInfo<BindingDefinition>

BindingSource

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<BindingSource> BindingSource { get; }

Property Value

JsonTypeInfo<BindingSource>

Boolean

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<bool> Boolean { get; }

Property Value

JsonTypeInfo<bool>

CameraDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<CameraDefinition> CameraDefinition { get; }

Property Value

JsonTypeInfo<CameraDefinition>

CommandDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<CommandDefinition> CommandDefinition { get; }

Property Value

JsonTypeInfo<CommandDefinition>

CompatibilityInfo

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<CompatibilityInfo> CompatibilityInfo { get; }

Property Value

JsonTypeInfo<CompatibilityInfo>

ConditionDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<ConditionDefinition> ConditionDefinition { get; }

Property Value

JsonTypeInfo<ConditionDefinition>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

public static PgpscnJsonContext Default { get; }

Property Value

PgpscnJsonContext

DictionaryStringObject

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<Dictionary<string, object>> DictionaryStringObject { get; }

Property Value

JsonTypeInfo<Dictionary<string, object>>

DictionaryStringString

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<Dictionary<string, string>> DictionaryStringString { get; }

Property Value

JsonTypeInfo<Dictionary<string, string>>

EntityDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<EntityDefinition> EntityDefinition { get; }

Property Value

JsonTypeInfo<EntityDefinition>

GeneratedSerializerOptions

The source-generated options associated with this context.

protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }

Property Value

JsonSerializerOptions

GradientStop

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<GradientStop> GradientStop { get; }

Property Value

JsonTypeInfo<GradientStop>

Int32

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<int> Int32 { get; }

Property Value

JsonTypeInfo<int>

ListActionDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<ActionDefinition>> ListActionDefinition { get; }

Property Value

JsonTypeInfo<List<ActionDefinition>>

ListBindingDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<BindingDefinition>> ListBindingDefinition { get; }

Property Value

JsonTypeInfo<List<BindingDefinition>>

ListCameraDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<CameraDefinition>> ListCameraDefinition { get; }

Property Value

JsonTypeInfo<List<CameraDefinition>>

ListCommandDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<CommandDefinition>> ListCommandDefinition { get; }

Property Value

JsonTypeInfo<List<CommandDefinition>>

ListEntityDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<EntityDefinition>> ListEntityDefinition { get; }

Property Value

JsonTypeInfo<List<EntityDefinition>>

ListGradientStop

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<GradientStop>> ListGradientStop { get; }

Property Value

JsonTypeInfo<List<GradientStop>>

ListObject

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<object>> ListObject { get; }

Property Value

JsonTypeInfo<List<object>>

ListRenderLayerDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<RenderLayerDefinition>> ListRenderLayerDefinition { get; }

Property Value

JsonTypeInfo<List<RenderLayerDefinition>>

ListSpawnPoint

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<SpawnPoint>> ListSpawnPoint { get; }

Property Value

JsonTypeInfo<List<SpawnPoint>>

ListString

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<string>> ListString { get; }

Property Value

JsonTypeInfo<List<string>>

ListTriggerVolume

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<TriggerVolume>> ListTriggerVolume { get; }

Property Value

JsonTypeInfo<List<TriggerVolume>>

ListUIElementDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<List<UIElementDefinition>> ListUIElementDefinition { get; }

Property Value

JsonTypeInfo<List<UIElementDefinition>>

MappingDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<MappingDefinition> MappingDefinition { get; }

Property Value

JsonTypeInfo<MappingDefinition>

NullableSingle

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<float?> NullableSingle { get; }

Property Value

JsonTypeInfo<float?>

Object

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<object> Object { get; }

Property Value

JsonTypeInfo<object>

RangeDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<RangeDefinition> RangeDefinition { get; }

Property Value

JsonTypeInfo<RangeDefinition>

RelativePositionDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<RelativePositionDefinition> RelativePositionDefinition { get; }

Property Value

JsonTypeInfo<RelativePositionDefinition>

RenderLayerDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<RenderLayerDefinition> RenderLayerDefinition { get; }

Property Value

JsonTypeInfo<RenderLayerDefinition>

SceneData

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<SceneData> SceneData { get; }

Property Value

JsonTypeInfo<SceneData>

SceneMetadata

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<SceneMetadata> SceneMetadata { get; }

Property Value

JsonTypeInfo<SceneMetadata>

SharedOptions

public static JsonSerializerOptions SharedOptions { get; }

Property Value

JsonSerializerOptions

Single

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<float> Single { get; }

Property Value

JsonTypeInfo<float>

SpawnPoint

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<SpawnPoint> SpawnPoint { get; }

Property Value

JsonTypeInfo<SpawnPoint>

String

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<string> String { get; }

Property Value

JsonTypeInfo<string>

TransformDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<TransformDefinition> TransformDefinition { get; }

Property Value

JsonTypeInfo<TransformDefinition>

TriggerVolume

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<TriggerVolume> TriggerVolume { get; }

Property Value

JsonTypeInfo<TriggerVolume>

UIElementDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<UIElementDefinition> UIElementDefinition { get; }

Property Value

JsonTypeInfo<UIElementDefinition>

Vector2

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<Vector2> Vector2 { get; }

Property Value

JsonTypeInfo<Vector2>

Vector3

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<Vector3> Vector3 { get; }

Property Value

JsonTypeInfo<Vector3>

WorldDefinition

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<WorldDefinition> WorldDefinition { get; }

Property Value

JsonTypeInfo<WorldDefinition>

Methods

CreateOptions()

public static JsonSerializerOptions CreateOptions()

Returns

JsonSerializerOptions

GetTypeInfo(Type)

Gets metadata for the specified type.

public override JsonTypeInfo? GetTypeInfo(Type type)

Parameters

type Type

The type to fetch metadata for.

Returns

JsonTypeInfo

The metadata for the specified type, or null if the context has no metadata for the type.