Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Location.cs
Go to the documentation of this file.
2
3namespace System.Xml.Xsl;
4
5[DebuggerDisplay("({Line},{Pos})")]
6internal struct Location
7{
8 private readonly ulong _value;
9
10 public int Line => (int)(_value >> 32);
11
12 public int Pos => (int)_value;
13
14 public Location(int line, int pos)
15 {
16 _value = (ulong)(((long)line << 32) | (uint)pos);
17 }
18
20 {
21 return _value <= that._value;
22 }
23}
Location(int line, int pos)
Definition Location.cs:14
bool LessOrEqual(Location that)
Definition Location.cs:19
readonly ulong _value
Definition Location.cs:8