Remove this. everywhere, add small note to override style

This commit is contained in:
Infi
2024-04-10 17:45:25 +02:00
parent 2dfd11f018
commit 948383b0c5
28 changed files with 316 additions and 304 deletions
+8 -8
View File
@@ -278,7 +278,7 @@ internal class SingleRow : ISelectorPart {
public uint Row { get; }
public SingleRow(uint row) {
this.Row = row;
Row = row;
}
}
@@ -287,8 +287,8 @@ internal class IndexRange : ISelectorPart {
public uint End { get; }
public IndexRange(uint start, uint end) {
this.Start = start;
this.End = end;
Start = start;
End = end;
}
}
@@ -299,7 +299,7 @@ internal class ColumnSpecifier : ISelectorPart {
public uint Column { get; }
public ColumnSpecifier(uint column) {
this.Column = column;
Column = column;
}
}
@@ -310,9 +310,9 @@ internal class AutoTranslateEntry {
internal SeString SeString { get; }
public AutoTranslateEntry(uint group, uint row, string str, SeString seStr) {
this.Group = group;
this.Row = row;
this.String = str;
this.SeString = seStr;
Group = group;
Row = row;
String = str;
SeString = seStr;
}
}
+5 -5
View File
@@ -6,18 +6,18 @@ internal class Lender<T> {
private int _counter;
internal Lender(Func<T> ctor) {
this._ctor = ctor;
_ctor = ctor;
}
internal void ResetCounter() {
this._counter = 0;
_counter = 0;
}
internal T Borrow() {
if (this._items.Count <= this._counter) {
this._items.Add(this._ctor());
if (_items.Count <= _counter) {
_items.Add(_ctor());
}
return this._items[this._counter++];
return _items[_counter++];
}
}
+2 -2
View File
@@ -8,7 +8,7 @@ internal class PartyFinderPayload : Payload {
internal uint Id { get; }
internal PartyFinderPayload(uint id) {
this.Id = id;
Id = id;
}
protected override byte[] EncodeImpl() {
@@ -26,7 +26,7 @@ internal class AchievementPayload : Payload {
internal uint Id { get; }
internal AchievementPayload(uint id) {
this.Id = id;
Id = id;
}
protected override byte[] EncodeImpl() {