Class MoongateUOJsonSerializationContext
[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
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
CharacterListFlags
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<CharacterListFlags> CharacterListFlags { get; }
Property Value
ClientFlags
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ClientFlags> ClientFlags { get; }
Property Value
ClientType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ClientType> ClientType { get; }
Property Value
ClientVersion
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ClientVersion> ClientVersion { get; }
Property Value
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
public static MoongateUOJsonSerializationContext Default { get; }
Property Value
Double
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<double> Double { get; }
Property Value
ExpansionInfo
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ExpansionInfo> ExpansionInfo { get; }
Property Value
ExpansionInfoArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ExpansionInfo[]> ExpansionInfoArray { get; }
Property Value
FeatureFlags
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<FeatureFlags> FeatureFlags { get; }
Property Value
GeneratedSerializerOptions
The source-generated options associated with this context.
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
HousingFlags
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<HousingFlags> HousingFlags { get; }
Property Value
Int32
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<int> Int32 { get; }
Property Value
JsonContainerSize
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonContainerSize> JsonContainerSize { get; }
Property Value
JsonContainerSizeArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonContainerSize[]> JsonContainerSizeArray { get; }
Property Value
JsonCoordinate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonCoordinate> JsonCoordinate { get; }
Property Value
JsonDfnHeader
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonDfnHeader> JsonDfnHeader { get; }
Property Value
JsonIntensityRange
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonIntensityRange> JsonIntensityRange { get; }
Property Value
JsonMusic
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonMusic> JsonMusic { get; }
Property Value
JsonNameDef
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonNameDef> JsonNameDef { get; }
Property Value
JsonNameDefArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonNameDef[]> JsonNameDefArray { get; }
Property Value
JsonProfession
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonProfession> JsonProfession { get; }
Property Value
JsonProfessionArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonProfession[]> JsonProfessionArray { get; }
Property Value
JsonProfessionsRoot
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonProfessionsRoot> JsonProfessionsRoot { get; }
Property Value
JsonRegion
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonRegion> JsonRegion { get; }
Property Value
JsonRegionWrap
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonRegionWrap> JsonRegionWrap { get; }
Property Value
JsonSkill
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonSkill> JsonSkill { get; }
Property Value
JsonSkillArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonSkill[]> JsonSkillArray { get; }
Property Value
JsonStat
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonStat> JsonStat { get; }
Property Value
JsonStatArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonStat[]> JsonStatArray { get; }
Property Value
JsonWeather
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonWeather> JsonWeather { get; }
Property Value
JsonWeatherWrap
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonWeatherWrap> JsonWeatherWrap { get; }
Property Value
ListJsonCoordinate
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<JsonCoordinate>> ListJsonCoordinate { get; }
Property Value
ListJsonMusic
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<JsonMusic>> ListJsonMusic { get; }
Property Value
ListJsonRegion
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<JsonRegion>> ListJsonRegion { get; }
Property Value
ListJsonWeather
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<JsonWeather>> ListJsonWeather { get; }
Property Value
ListString
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<string>> ListString { get; }
Property Value
NullableInt32
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<int?> NullableInt32 { get; }
Property Value
ProtocolChanges
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ProtocolChanges> ProtocolChanges { get; }
Property Value
SkillInfo
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SkillInfo> SkillInfo { get; }
Property Value
SkillInfoArray
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SkillInfo[]> SkillInfoArray { get; }
Property Value
Stat
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Stat> Stat { get; }
Property Value
String
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<string> String { get; }
Property Value
UOMapSelectionFlags
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<UOMapSelectionFlags> UOMapSelectionFlags { 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.