Example #1
0
 public WorldPoint(Int64 x, Int64 y, double difficulty, string tags)
 {
     this.X     = x;
     this.Y     = y;
     Difficulty = difficulty;
     Tags       = new TagSystem(tags);
 }
Example #2
0
 public WorldPoint(Int64 x, Int64 y)
 {
     this.X     = x;
     this.Y     = y;
     Difficulty = 1;
     Tags       = new TagSystem();
 }
Example #3
0
        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);
        }
Example #4
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            TagSystem obj = (TagSystem)value;

            writer.WriteValue(obj.ToString());
        }