Skip to content

Commit

Permalink
Merge pull request #5 from Megghy/main
Browse files Browse the repository at this point in the history
fix readsign
  • Loading branch information
cc004 authored Oct 12, 2021
2 parents 0284e52 + 4c937a7 commit 80ab510
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TrProtocol/Packets/Modules/NetTextModuleC2S.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ public class NetTextModuleC2S : NetModulesPacket
public override NetModuleType ModuleType => NetModuleType.NetTextModule;
public string Command { get; set; }
public string Text { get; set; }
public override string ToString()
{
return $"[C2S] {Text}";
}
}
}
4 changes: 4 additions & 0 deletions TrProtocol/Packets/Modules/NetTextModuleS2C.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ public class NetTextModuleS2C : NetModulesPacket, IPlayerSlot
public byte PlayerSlot { get; set; }
public NetworkText Text { get; set; }
public Color Color { get; set; }
public override string ToString()
{
return $"[S2C] {Text._text}";
}
}
}
1 change: 1 addition & 0 deletions TrProtocol/Packets/ReadSign.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class ReadSign : Packet, IPlayerSlot
public override MessageID Type => MessageID.ReadSign;
public short SignSlot { get; set; }
public ShortPosition Position { get; set; }
public string Text { get; set; }
public byte PlayerSlot { get; set; }
public byte Bit1 { get; set; }
}
Expand Down

0 comments on commit 80ab510

Please sign in to comment.