mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-22 01:34:22 -05:00
- Fixed a bug in which clients were not spawned in with their items despite selecting them in the lobby. Also applied this fix to the respawn method for the pitfalls
19 lines
520 B
C#
19 lines
520 B
C#
public struct PlayerData {
|
|
|
|
public string PlayerName { get; private set; }
|
|
public ulong ClientId { get; private set; }
|
|
public bool IsKing { get; set; }
|
|
public PlayerInventory pInv { get; set; }
|
|
|
|
public bool Finished { get; set; }
|
|
|
|
public PlayerData(string playerName, ulong clientId, bool isKing = false, bool finished = false)
|
|
{
|
|
PlayerName = playerName;
|
|
pInv = new PlayerInventory();
|
|
ClientId = clientId;
|
|
IsKing = isKing;
|
|
Finished = finished;
|
|
}
|
|
}
|