add isDead property

This commit is contained in:
Mister_Nebula 2021-06-25 13:17:10 +01:00
parent 271e3916d5
commit 8dd96ae06b
2 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,8 @@ namespace QSB.DeathSync
return;
}
player.IsDead = true;
_playersPendingRespawn.Add(player);
UpdateRespawnNotification();
@ -64,6 +66,8 @@ namespace QSB.DeathSync
return;
}
player.IsDead = false;
_playersPendingRespawn.Remove(player);
UpdateRespawnNotification();

View File

@ -55,6 +55,7 @@ namespace QSB.Player
public bool IsInMoon; // TODO : move into PlayerStates?
public bool IsInShrine; // TODO : move into PlayerStates?
public IQSBQuantumObject EntangledObject;
public bool IsDead { get; set; }
public PlayerInfo(uint id)
{