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

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