Unstable 1.1.14.0

This commit is contained in:
Markus Isberg
2023-10-02 16:43:54 +03:00
parent 94f5a93a0c
commit cf8f0de659
606 changed files with 21906 additions and 11456 deletions
@@ -0,0 +1,22 @@
#nullable enable
using Barotrauma.Networking;
namespace Barotrauma
{
sealed partial class TraitorManager
{
public static void ClientRead(IReadMessage msg)
{
//unused, but could be worth keeping in the messages regardless in case a mod wants to use these for something
TraitorEvent.State state = (TraitorEvent.State)msg.ReadByte();
Identifier eventIdentifier = msg.ReadIdentifier();
if (GameMain.Client?.Character == null)
{
DebugConsole.ThrowError("Received a traitor update when not controlling a character.");
return;
}
GameMain.Client.Character.IsTraitor = true;
}
}
}