Fixes for the new update
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Barotrauma.Networking
|
||||
private readonly Dictionary<CharacterTeamType, List<Door>> shuttleDoors = new Dictionary<CharacterTeamType, List<Door>>();
|
||||
private readonly Dictionary<CharacterTeamType, List<ItemContainer>> respawnContainers = new Dictionary<CharacterTeamType, List<ItemContainer>>();
|
||||
|
||||
private class TeamSpecificState
|
||||
public class TeamSpecificState
|
||||
{
|
||||
public readonly CharacterTeamType TeamID;
|
||||
|
||||
@@ -267,7 +267,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
partial void UpdateReturningProjSpecific(TeamSpecificState teamSpecificState, float deltaTime);
|
||||
|
||||
private Submarine GetShuttle(CharacterTeamType team)
|
||||
public Submarine GetShuttle(CharacterTeamType team)
|
||||
{
|
||||
if (respawnShuttles.TryGetValue(team, out Submarine sub))
|
||||
{
|
||||
@@ -276,6 +276,16 @@ namespace Barotrauma.Networking
|
||||
return null;
|
||||
}
|
||||
|
||||
public TeamSpecificState GetTeamSpecificState(CharacterTeamType team)
|
||||
{
|
||||
if (teamSpecificStates.TryGetValue(team, out TeamSpecificState state))
|
||||
{
|
||||
return state;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private void ResetShuttle(TeamSpecificState teamSpecificState)
|
||||
{
|
||||
teamSpecificState.ReturnTime = DateTime.Now + new TimeSpan(0, 0, 0, 0, milliseconds: (int)(maxTransportTime * 1000));
|
||||
|
||||
Reference in New Issue
Block a user