C# Class MonoGame.Extended.Serialization.ContentManagerJsonConverter

Loads content from a JSON file into the ContentManager using the asset name
Inheritance: JsonConverter
Afficher le fichier Open project: craftworkgames/MonoGame.Extended

Méthodes publiques

Méthode Description
CanConvert ( Type objectType ) : bool
ContentManagerJsonConverter ( ContentManager contentManager, Func getAssetName ) : System
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Method Details

CanConvert() public méthode

public CanConvert ( Type objectType ) : bool
objectType Type
Résultat bool

ContentManagerJsonConverter() public méthode

public ContentManagerJsonConverter ( ContentManager contentManager, Func getAssetName ) : System
contentManager ContentManager
getAssetName Func
Résultat System

ReadJson() public méthode

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader JsonReader
objectType Type
existingValue object
serializer JsonSerializer
Résultat object

WriteJson() public méthode

public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer JsonWriter
value object
serializer JsonSerializer
Résultat void