public static MarkupTagElement ToXML(this PositionVector2 position, string name) { MarkupTagElement tag = new MarkupTagElement(); tag.FullName = name; tag.Attributes.Add("x", position.X.ToString()); tag.Attributes.Add("y", position.Y.ToString()); return(tag); }
public override bool Equals(object obj) { return(obj is TileNode other && PositionVector2.Equals(other.PositionVector2)); }