public WorldPoint(Int64 x, Int64 y, double difficulty, string tags) { this.X = x; this.Y = y; Difficulty = difficulty; Tags = new TagSystem(tags); }
public WorldPoint(Int64 x, Int64 y) { this.X = x; this.Y = y; Difficulty = 1; Tags = new TagSystem(); }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (reader.Value == null) { return(new TagSystem()); } TagSystem obj = new TagSystem((string)reader.Value); return(obj); }
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { TagSystem obj = (TagSystem)value; writer.WriteValue(obj.ToString()); }