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