Table of Contents

Class MoongateUOJsonSerializationContext

Namespace
Moongate.UO.Data.Json.Context
Assembly
Moongate.UO.Data.dll
[JsonSourceGenerationOptions(PropertyNameCaseInsensitive = true, UseStringEnumConverter = true)]
[JsonSerializable(typeof(SkillInfo[]))]
[JsonSerializable(typeof(ExpansionInfo[]))]
[JsonSerializable(typeof(JsonContainerSize[]))]
[JsonSerializable(typeof(JsonNameDef[]))]
[JsonSerializable(typeof(JsonRegionWrap))]
[JsonSerializable(typeof(JsonWeatherWrap))]
[JsonSerializable(typeof(JsonProfessionsRoot))]
public class MoongateUOJsonSerializationContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
MoongateUOJsonSerializationContext
Implements
Inherited Members

Constructors

MoongateUOJsonSerializationContext()

public MoongateUOJsonSerializationContext()

MoongateUOJsonSerializationContext(JsonSerializerOptions)

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

public MoongateUOJsonSerializationContext(JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

The run time provided options for the context instance.

Properties

Boolean

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

public JsonTypeInfo<bool> Boolean { get; }

Property Value

JsonTypeInfo<bool>

CharacterListFlags

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

public JsonTypeInfo<CharacterListFlags> CharacterListFlags { get; }

Property Value

JsonTypeInfo<CharacterListFlags>

ClientFlags

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

public JsonTypeInfo<ClientFlags> ClientFlags { get; }

Property Value

JsonTypeInfo<ClientFlags>

ClientType

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

public JsonTypeInfo<ClientType> ClientType { get; }

Property Value

JsonTypeInfo<ClientType>

ClientVersion

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

public JsonTypeInfo<ClientVersion> ClientVersion { get; }

Property Value

JsonTypeInfo<ClientVersion>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

public static MoongateUOJsonSerializationContext Default { get; }

Property Value

MoongateUOJsonSerializationContext

Double

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

public JsonTypeInfo<double> Double { get; }

Property Value

JsonTypeInfo<double>

ExpansionInfo

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

public JsonTypeInfo<ExpansionInfo> ExpansionInfo { get; }

Property Value

JsonTypeInfo<ExpansionInfo>

ExpansionInfoArray

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

public JsonTypeInfo<ExpansionInfo[]> ExpansionInfoArray { get; }

Property Value

JsonTypeInfo<ExpansionInfo[]>

FeatureFlags

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

public JsonTypeInfo<FeatureFlags> FeatureFlags { get; }

Property Value

JsonTypeInfo<FeatureFlags>

GeneratedSerializerOptions

The source-generated options associated with this context.

protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }

Property Value

JsonSerializerOptions

HousingFlags

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

public JsonTypeInfo<HousingFlags> HousingFlags { get; }

Property Value

JsonTypeInfo<HousingFlags>

Int32

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

public JsonTypeInfo<int> Int32 { get; }

Property Value

JsonTypeInfo<int>

JsonContainerSize

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

public JsonTypeInfo<JsonContainerSize> JsonContainerSize { get; }

Property Value

JsonTypeInfo<JsonContainerSize>

JsonContainerSizeArray

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

public JsonTypeInfo<JsonContainerSize[]> JsonContainerSizeArray { get; }

Property Value

JsonTypeInfo<JsonContainerSize[]>

JsonCoordinate

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

public JsonTypeInfo<JsonCoordinate> JsonCoordinate { get; }

Property Value

JsonTypeInfo<JsonCoordinate>

JsonDfnHeader

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

public JsonTypeInfo<JsonDfnHeader> JsonDfnHeader { get; }

Property Value

JsonTypeInfo<JsonDfnHeader>

JsonIntensityRange

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

public JsonTypeInfo<JsonIntensityRange> JsonIntensityRange { get; }

Property Value

JsonTypeInfo<JsonIntensityRange>

JsonMusic

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

public JsonTypeInfo<JsonMusic> JsonMusic { get; }

Property Value

JsonTypeInfo<JsonMusic>

JsonNameDef

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

public JsonTypeInfo<JsonNameDef> JsonNameDef { get; }

Property Value

JsonTypeInfo<JsonNameDef>

JsonNameDefArray

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

public JsonTypeInfo<JsonNameDef[]> JsonNameDefArray { get; }

Property Value

JsonTypeInfo<JsonNameDef[]>

JsonProfession

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

public JsonTypeInfo<JsonProfession> JsonProfession { get; }

Property Value

JsonTypeInfo<JsonProfession>

JsonProfessionArray

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

public JsonTypeInfo<JsonProfession[]> JsonProfessionArray { get; }

Property Value

JsonTypeInfo<JsonProfession[]>

JsonProfessionsRoot

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

public JsonTypeInfo<JsonProfessionsRoot> JsonProfessionsRoot { get; }

Property Value

JsonTypeInfo<JsonProfessionsRoot>

JsonRegion

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

public JsonTypeInfo<JsonRegion> JsonRegion { get; }

Property Value

JsonTypeInfo<JsonRegion>

JsonRegionWrap

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

public JsonTypeInfo<JsonRegionWrap> JsonRegionWrap { get; }

Property Value

JsonTypeInfo<JsonRegionWrap>

JsonSkill

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

public JsonTypeInfo<JsonSkill> JsonSkill { get; }

Property Value

JsonTypeInfo<JsonSkill>

JsonSkillArray

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

public JsonTypeInfo<JsonSkill[]> JsonSkillArray { get; }

Property Value

JsonTypeInfo<JsonSkill[]>

JsonStat

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

public JsonTypeInfo<JsonStat> JsonStat { get; }

Property Value

JsonTypeInfo<JsonStat>

JsonStatArray

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

public JsonTypeInfo<JsonStat[]> JsonStatArray { get; }

Property Value

JsonTypeInfo<JsonStat[]>

JsonWeather

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

public JsonTypeInfo<JsonWeather> JsonWeather { get; }

Property Value

JsonTypeInfo<JsonWeather>

JsonWeatherWrap

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

public JsonTypeInfo<JsonWeatherWrap> JsonWeatherWrap { get; }

Property Value

JsonTypeInfo<JsonWeatherWrap>

ListJsonCoordinate

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

public JsonTypeInfo<List<JsonCoordinate>> ListJsonCoordinate { get; }

Property Value

JsonTypeInfo<List<JsonCoordinate>>

ListJsonMusic

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

public JsonTypeInfo<List<JsonMusic>> ListJsonMusic { get; }

Property Value

JsonTypeInfo<List<JsonMusic>>

ListJsonRegion

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

public JsonTypeInfo<List<JsonRegion>> ListJsonRegion { get; }

Property Value

JsonTypeInfo<List<JsonRegion>>

ListJsonWeather

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

public JsonTypeInfo<List<JsonWeather>> ListJsonWeather { get; }

Property Value

JsonTypeInfo<List<JsonWeather>>

ListString

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

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

Property Value

JsonTypeInfo<List<string>>

NullableInt32

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

public JsonTypeInfo<int?> NullableInt32 { get; }

Property Value

JsonTypeInfo<int?>

ProtocolChanges

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

public JsonTypeInfo<ProtocolChanges> ProtocolChanges { get; }

Property Value

JsonTypeInfo<ProtocolChanges>

SkillInfo

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

public JsonTypeInfo<SkillInfo> SkillInfo { get; }

Property Value

JsonTypeInfo<SkillInfo>

SkillInfoArray

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

public JsonTypeInfo<SkillInfo[]> SkillInfoArray { get; }

Property Value

JsonTypeInfo<SkillInfo[]>

Stat

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

public JsonTypeInfo<Stat> Stat { get; }

Property Value

JsonTypeInfo<Stat>

String

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

public JsonTypeInfo<string> String { get; }

Property Value

JsonTypeInfo<string>

UOMapSelectionFlags

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

public JsonTypeInfo<UOMapSelectionFlags> UOMapSelectionFlags { get; }

Property Value

JsonTypeInfo<UOMapSelectionFlags>

Methods

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.