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