Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ObjectSequence2.cs
Go to the documentation of this file.
2
4
5internal struct ObjectSequence2 : IEquatable<ObjectSequence2>, IObjectSequence
6{
7 public object Value1;
8
9 public object Value2;
10
12 {
13 if ((Value1 == null) ? (other.Value1 == null) : Value1.Equals(other.Value1))
14 {
15 if (Value2 != null)
16 {
17 return Value2.Equals(other.Value2);
18 }
19 return other.Value2 == null;
20 }
21 return false;
22 }
23
24 public override bool Equals(object obj)
25 {
27 {
28 return Equals(other);
29 }
30 return false;
31 }
32
34 {
35 return MemoryMarshal.CreateSpan(ref Value1, 2);
36 }
37
38 public override int GetHashCode()
39 {
40 return HashCode.Combine(Value1, Value2);
41 }
42}