Table of Contents

Class AssetLocationJsonParser

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class AssetLocationJsonParser : JsonConverter<AssetLocation>
Inheritance
JsonConverter
JsonConverter<AssetLocation>
AssetLocationJsonParser
Inherited Members
JsonConverter.CanRead
Extension Methods

Constructors

AssetLocationJsonParser(string)

public AssetLocationJsonParser(string domain)

Parameters

domain string

Fields

domain

protected string domain

Field Value

string

Properties

CanWrite

public override bool CanWrite { get; }

Property Value

bool

Methods

ReadJson(JsonReader, Type, AssetLocation?, bool, JsonSerializer)

public override AssetLocation? ReadJson(JsonReader reader, Type objectType, AssetLocation? existingValue, bool hasExistingValue, JsonSerializer serializer)

Parameters

reader JsonReader
objectType Type
existingValue AssetLocation
hasExistingValue bool
serializer JsonSerializer

Returns

AssetLocation

WriteJson(JsonWriter, AssetLocation?, JsonSerializer)

public override void WriteJson(JsonWriter writer, AssetLocation? value, JsonSerializer serializer)

Parameters

writer JsonWriter
value AssetLocation
serializer JsonSerializer