Unstable 1.8.4.0
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user