Unstable 1.8.4.0

This commit is contained in:
Markus Isberg
2025-03-12 12:56:27 +00:00
parent a4c3e868e4
commit a4a3427e4e
627 changed files with 29860 additions and 10018 deletions
@@ -1,7 +1,6 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Barotrauma.Networking
{
@@ -10,6 +9,7 @@ namespace Barotrauma.Networking
{
public string Name;
public Identifier PreferredJob;
public CharacterTeamType TeamID;
public CharacterTeamType PreferredTeam;
public UInt16 NameId;
public AccountInfo AccountInfo;
@@ -51,7 +51,23 @@ namespace Barotrauma.Networking
public Identifier PreferredJob;
public CharacterTeamType TeamID;
private CharacterTeamType teamID;
public CharacterTeamType TeamID
{
get { return teamID; }
set
{
if (value != teamID)
{
DebugConsole.Log($"Changed client {Name}'s team to {teamID}.");
if (GameMain.NetworkMember != null && GameMain.NetworkMember.IsServer)
{
GameMain.NetworkMember.LastClientListUpdateID++;
}
teamID = value;
}
}
}
public CharacterTeamType PreferredTeam;