Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SequencePosition.cs
Go to the documentation of this file.
3
4namespace System;
5
6public readonly struct SequencePosition : IEquatable<SequencePosition>
7{
8 private readonly object _object;
9
10 private readonly int _integer;
11
12 public SequencePosition(object? @object, int integer)
13 {
14 _object = @object;
15 _integer = integer;
16 }
17
18 [EditorBrowsable(EditorBrowsableState.Never)]
19 public object? GetObject()
20 {
21 return _object;
22 }
23
24 [EditorBrowsable(EditorBrowsableState.Never)]
25 public int GetInteger()
26 {
27 return _integer;
28 }
29
31 {
32 if (_integer == other._integer)
33 {
34 return object.Equals(_object, other._object);
35 }
36 return false;
37 }
38
39 [EditorBrowsable(EditorBrowsableState.Never)]
40 public override bool Equals([NotNullWhen(true)] object? obj)
41 {
43 {
44 return Equals(other);
45 }
46 return false;
47 }
48
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 public override int GetHashCode()
51 {
52 return HashCode.Combine(_object?.GetHashCode() ?? 0, _integer);
53 }
54}
override bool Equals([NotNullWhen(true)] object? obj)
bool Equals(SequencePosition other)
SequencePosition(object? @object, int integer)