Player Inventory Networking

This commit is contained in:
Melbyj1125
2021-11-17 13:20:00 -06:00
parent 69a946c3ee
commit 17a7cdb1ae
5 changed files with 51 additions and 14 deletions

View File

@@ -3,10 +3,12 @@ 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 PlayerData(string playerName, ulong clientId, bool isKing = false)
{
PlayerName = playerName;
pInv = new PlayerInventory();
ClientId = clientId;
IsKing = isKing;
}