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