Skip to content

Commit 4c937a7

Browse files
committed
fix readsign
1 parent 0284e52 commit 4c937a7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

TrProtocol/Packets/Modules/NetTextModuleC2S.cs

+4
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ public class NetTextModuleC2S : NetModulesPacket
1010
public override NetModuleType ModuleType => NetModuleType.NetTextModule;
1111
public string Command { get; set; }
1212
public string Text { get; set; }
13+
public override string ToString()
14+
{
15+
return $"[C2S] {Text}";
16+
}
1317
}
1418
}

TrProtocol/Packets/Modules/NetTextModuleS2C.cs

+4
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ public class NetTextModuleS2C : NetModulesPacket, IPlayerSlot
1010
public byte PlayerSlot { get; set; }
1111
public NetworkText Text { get; set; }
1212
public Color Color { get; set; }
13+
public override string ToString()
14+
{
15+
return $"[S2C] {Text._text}";
16+
}
1317
}
1418
}

TrProtocol/Packets/ReadSign.cs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class ReadSign : Packet, IPlayerSlot
77
public override MessageID Type => MessageID.ReadSign;
88
public short SignSlot { get; set; }
99
public ShortPosition Position { get; set; }
10+
public string Text { get; set; }
1011
public byte PlayerSlot { get; set; }
1112
public byte Bit1 { get; set; }
1213
}

0 commit comments

Comments
 (0)