Пример #1
0
        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);
        }
Пример #2
0
 public override bool Equals(object obj)
 {
     return(obj is TileNode other && PositionVector2.Equals(other.PositionVector2));
 }