wasStitchNET – Blame information for rev 13

Subversion Repositories:
Rev:
Rev Author Line No. Line
13 office 1 ///////////////////////////////////////////////////////////////////////////
2 // Copyright (C) Wizardry and Steamworks 2016 - License: GNU GPLv3 //
3 // Please see: http://www.gnu.org/licenses/gpl.html for legal details, //
4 // rights of fair usage, the disclaimer and warranty conditions. //
5 ///////////////////////////////////////////////////////////////////////////
6  
7 using System;
8 using wasSharp.Geo;
9  
10 namespace wasStitchNET.Structures
11 {
12 public class StitchMirror : IEquatable<StitchMirror>
13 {
14 public StitchMirror(string address, Distance distance)
15 {
16 Address = address;
17 Distance = distance;
18 }
19  
20 public string Address { get; }
21  
22 public Distance Distance { get; }
23  
24 public bool Equals(StitchMirror other)
25 {
26 return other != null && Address.Equals(other.Address);
27 }
28  
29 public override int GetHashCode()
30 {
31 return Address.GetHashCode() ^ Distance.GetHashCode();
32 }
33 }
34 }