C# 클래스 MonoGame.Extended.Serialization.ContentManagerJsonConverter

Loads content from a JSON file into the ContentManager using the asset name
상속: JsonConverter
파일 보기 프로젝트 열기: craftworkgames/MonoGame.Extended

공개 메소드들

메소드 설명
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

메소드 상세

CanConvert() 공개 메소드

public CanConvert ( Type objectType ) : bool
objectType Type
리턴 bool

ContentManagerJsonConverter() 공개 메소드

public ContentManagerJsonConverter ( ContentManager contentManager, Func getAssetName ) : System
contentManager ContentManager
getAssetName Func
리턴 System

ReadJson() 공개 메소드

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader JsonReader
objectType Type
existingValue object
serializer JsonSerializer
리턴 object

WriteJson() 공개 메소드

public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer JsonWriter
value object
serializer JsonSerializer
리턴 void