Table of Contents

Class MoongateUOTemplateJsonContext

Namespace
Moongate.UO.Data.Json.Context
Assembly
Moongate.UO.Data.dll
[JsonSourceGenerationOptions(PropertyNameCaseInsensitive = true, UseStringEnumConverter = true)]
[JsonSerializable(typeof(ItemTemplateDefinitionBase[]))]
[JsonSerializable(typeof(ItemTemplateDefinition[]))]
[JsonSerializable(typeof(HueSpec))]
[JsonSerializable(typeof(GoldValueSpec))]
[JsonSerializable(typeof(MobileTemplateDefinitionBase[]))]
[JsonSerializable(typeof(MobileTemplateDefinition[]))]
[JsonSerializable(typeof(MobileEquipmentItemTemplate[]))]
[JsonSerializable(typeof(MobileRandomEquipmentPoolTemplate[]))]
[JsonSerializable(typeof(MobileWeightedEquipmentItemTemplate[]))]
public class MoongateUOTemplateJsonContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
MoongateUOTemplateJsonContext
Implements
Inherited Members

Constructors

MoongateUOTemplateJsonContext()

public MoongateUOTemplateJsonContext()

MoongateUOTemplateJsonContext(JsonSerializerOptions)

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

public MoongateUOTemplateJsonContext(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>

Decimal

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

public JsonTypeInfo<decimal> Decimal { get; }

Property Value

JsonTypeInfo<decimal>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

public static MoongateUOTemplateJsonContext Default { get; }

Property Value

MoongateUOTemplateJsonContext

GeneratedSerializerOptions

The source-generated options associated with this context.

protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }

Property Value

JsonSerializerOptions

GoldValueSpec

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

public JsonTypeInfo<GoldValueSpec> GoldValueSpec { get; }

Property Value

JsonTypeInfo<GoldValueSpec>

HueSpec

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

public JsonTypeInfo<HueSpec> HueSpec { get; }

Property Value

JsonTypeInfo<HueSpec>

Int32

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

public JsonTypeInfo<int> Int32 { get; }

Property Value

JsonTypeInfo<int>

ItemLayerType

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

public JsonTypeInfo<ItemLayerType> ItemLayerType { get; }

Property Value

JsonTypeInfo<ItemLayerType>

ItemTemplateDefinition

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

public JsonTypeInfo<ItemTemplateDefinition> ItemTemplateDefinition { get; }

Property Value

JsonTypeInfo<ItemTemplateDefinition>

ItemTemplateDefinitionArray

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

public JsonTypeInfo<ItemTemplateDefinition[]> ItemTemplateDefinitionArray { get; }

Property Value

JsonTypeInfo<ItemTemplateDefinition[]>

ItemTemplateDefinitionBase

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

public JsonTypeInfo<ItemTemplateDefinitionBase> ItemTemplateDefinitionBase { get; }

Property Value

JsonTypeInfo<ItemTemplateDefinitionBase>

ItemTemplateDefinitionBaseArray

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

public JsonTypeInfo<ItemTemplateDefinitionBase[]> ItemTemplateDefinitionBaseArray { get; }

Property Value

JsonTypeInfo<ItemTemplateDefinitionBase[]>

ListMobileEquipmentItemTemplate

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

public JsonTypeInfo<List<MobileEquipmentItemTemplate>> ListMobileEquipmentItemTemplate { get; }

Property Value

JsonTypeInfo<List<MobileEquipmentItemTemplate>>

ListMobileRandomEquipmentPoolTemplate

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

public JsonTypeInfo<List<MobileRandomEquipmentPoolTemplate>> ListMobileRandomEquipmentPoolTemplate { get; }

Property Value

JsonTypeInfo<List<MobileRandomEquipmentPoolTemplate>>

ListMobileWeightedEquipmentItemTemplate

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

public JsonTypeInfo<List<MobileWeightedEquipmentItemTemplate>> ListMobileWeightedEquipmentItemTemplate { get; }

Property Value

JsonTypeInfo<List<MobileWeightedEquipmentItemTemplate>>

ListString

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

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

Property Value

JsonTypeInfo<List<string>>

LootType

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

public JsonTypeInfo<LootType> LootType { get; }

Property Value

JsonTypeInfo<LootType>

MobileEquipmentItemTemplate

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

public JsonTypeInfo<MobileEquipmentItemTemplate> MobileEquipmentItemTemplate { get; }

Property Value

JsonTypeInfo<MobileEquipmentItemTemplate>

MobileEquipmentItemTemplateArray

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

public JsonTypeInfo<MobileEquipmentItemTemplate[]> MobileEquipmentItemTemplateArray { get; }

Property Value

JsonTypeInfo<MobileEquipmentItemTemplate[]>

MobileRandomEquipmentPoolTemplate

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

public JsonTypeInfo<MobileRandomEquipmentPoolTemplate> MobileRandomEquipmentPoolTemplate { get; }

Property Value

JsonTypeInfo<MobileRandomEquipmentPoolTemplate>

MobileRandomEquipmentPoolTemplateArray

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

public JsonTypeInfo<MobileRandomEquipmentPoolTemplate[]> MobileRandomEquipmentPoolTemplateArray { get; }

Property Value

JsonTypeInfo<MobileRandomEquipmentPoolTemplate[]>

MobileTemplateDefinition

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

public JsonTypeInfo<MobileTemplateDefinition> MobileTemplateDefinition { get; }

Property Value

JsonTypeInfo<MobileTemplateDefinition>

MobileTemplateDefinitionArray

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

public JsonTypeInfo<MobileTemplateDefinition[]> MobileTemplateDefinitionArray { get; }

Property Value

JsonTypeInfo<MobileTemplateDefinition[]>

MobileTemplateDefinitionBase

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

public JsonTypeInfo<MobileTemplateDefinitionBase> MobileTemplateDefinitionBase { get; }

Property Value

JsonTypeInfo<MobileTemplateDefinitionBase>

MobileTemplateDefinitionBaseArray

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

public JsonTypeInfo<MobileTemplateDefinitionBase[]> MobileTemplateDefinitionBaseArray { get; }

Property Value

JsonTypeInfo<MobileTemplateDefinitionBase[]>

MobileWeightedEquipmentItemTemplate

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

public JsonTypeInfo<MobileWeightedEquipmentItemTemplate> MobileWeightedEquipmentItemTemplate { get; }

Property Value

JsonTypeInfo<MobileWeightedEquipmentItemTemplate>

MobileWeightedEquipmentItemTemplateArray

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

public JsonTypeInfo<MobileWeightedEquipmentItemTemplate[]> MobileWeightedEquipmentItemTemplateArray { get; }

Property Value

JsonTypeInfo<MobileWeightedEquipmentItemTemplate[]>

Single

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

public JsonTypeInfo<float> Single { get; }

Property Value

JsonTypeInfo<float>

String

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

public JsonTypeInfo<string> String { get; }

Property Value

JsonTypeInfo<string>

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.