示例#1
0
 public override object ReadJson(
     JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer
     )
 {
     if (reader.Value != null)
     {
         return(KerbalstuffApi.ExpandPath(reader.Value.ToString()));
     }
     return(null);
 }
示例#2
0
 /// <summary>
 /// Returns the path to the mod's home on KerbalStuff
 /// </summary>
 /// <returns>The home.</returns>
 public Uri GetPageUrl()
 {
     return(KerbalstuffApi.ExpandPath(string.Format("/mod/{0}/{1}", id, name)));
 }