v1.6.17.0 (Unto the Breach update)

This commit is contained in:
Regalis11
2024-10-22 17:29:04 +03:00
parent e74b3cdb17
commit 6e6c17e100
417 changed files with 17166 additions and 5870 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;