Class MoongateUOTemplateJsonContext
[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
optionsJsonSerializerOptionsThe 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
Decimal
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<decimal> Decimal { get; }
Property Value
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
public static MoongateUOTemplateJsonContext Default { get; }
Property Value
GeneratedSerializerOptions
The source-generated options associated with this context.
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
GoldValueSpec
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<GoldValueSpec> GoldValueSpec { get; }
Property Value
HueSpec
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<HueSpec> HueSpec { get; }
Property Value
Int32
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<int> Int32 { get; }
Property Value
ItemLayerType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ItemLayerType> ItemLayerType { get; }
Property Value
ItemTemplateDefinition
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ItemTemplateDefinition> ItemTemplateDefinition { get; }
Property Value
ItemTemplateDefinitionArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ItemTemplateDefinition[]> ItemTemplateDefinitionArray { get; }
Property Value
ItemTemplateDefinitionBase
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ItemTemplateDefinitionBase> ItemTemplateDefinitionBase { get; }
Property Value
ItemTemplateDefinitionBaseArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ItemTemplateDefinitionBase[]> ItemTemplateDefinitionBaseArray { get; }
Property Value
ListMobileEquipmentItemTemplate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<MobileEquipmentItemTemplate>> ListMobileEquipmentItemTemplate { get; }
Property Value
ListMobileRandomEquipmentPoolTemplate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<MobileRandomEquipmentPoolTemplate>> ListMobileRandomEquipmentPoolTemplate { get; }
Property Value
ListMobileWeightedEquipmentItemTemplate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<MobileWeightedEquipmentItemTemplate>> ListMobileWeightedEquipmentItemTemplate { get; }
Property Value
ListString
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<string>> ListString { get; }
Property Value
LootType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<LootType> LootType { get; }
Property Value
MobileEquipmentItemTemplate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileEquipmentItemTemplate> MobileEquipmentItemTemplate { get; }
Property Value
MobileEquipmentItemTemplateArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileEquipmentItemTemplate[]> MobileEquipmentItemTemplateArray { get; }
Property Value
MobileRandomEquipmentPoolTemplate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileRandomEquipmentPoolTemplate> MobileRandomEquipmentPoolTemplate { get; }
Property Value
MobileRandomEquipmentPoolTemplateArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileRandomEquipmentPoolTemplate[]> MobileRandomEquipmentPoolTemplateArray { get; }
Property Value
MobileTemplateDefinition
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileTemplateDefinition> MobileTemplateDefinition { get; }
Property Value
MobileTemplateDefinitionArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileTemplateDefinition[]> MobileTemplateDefinitionArray { get; }
Property Value
MobileTemplateDefinitionBase
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileTemplateDefinitionBase> MobileTemplateDefinitionBase { get; }
Property Value
MobileTemplateDefinitionBaseArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileTemplateDefinitionBase[]> MobileTemplateDefinitionBaseArray { get; }
Property Value
MobileWeightedEquipmentItemTemplate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileWeightedEquipmentItemTemplate> MobileWeightedEquipmentItemTemplate { get; }
Property Value
MobileWeightedEquipmentItemTemplateArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MobileWeightedEquipmentItemTemplate[]> MobileWeightedEquipmentItemTemplateArray { get; }
Property Value
Single
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<float> Single { get; }
Property Value
String
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<string> String { get; }
Property Value
Methods
GetTypeInfo(Type)
Gets metadata for the specified type.
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
typeTypeThe type to fetch metadata for.
Returns
- JsonTypeInfo
The metadata for the specified type, or null if the context has no metadata for the type.