Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CopyPosition.cs
Go to the documentation of this file.
2
4
5[DebuggerDisplay("{DebuggerDisplay,nq}")]
6internal readonly struct CopyPosition
7{
8 public static CopyPosition Start => default(CopyPosition);
9
10 internal int Row { get; }
11
12 internal int Column { get; }
13
14 private string DebuggerDisplay => $"[{Row}, {Column}]";
15
16 internal CopyPosition(int row, int column)
17 {
18 Row = row;
19 Column = column;
20 }
21
23 {
24 if (Column != endColumn)
25 {
26 return this;
27 }
28 return new CopyPosition(Row + 1, 0);
29 }
30}
CopyPosition Normalize(int endColumn)