feat: room properties ready, player properties wip

This commit is contained in:
2024-05-07 22:42:45 +03:00
parent 6886808132
commit 5bf1881f81
22 changed files with 325 additions and 157 deletions
+2 -6
View File
@@ -26,7 +26,7 @@ namespace Ragon.Client
public ushort PeerId { get; set; }
public bool IsRoomOwner { get; set; }
public bool IsLocal { get; set; }
public byte[] Data { get; private set; }
public RagonUserData UserData { get; private set; }
public RagonPlayer(ushort peerId, string playerId, string name, bool isRoomOwner, bool isLocal)
{
@@ -35,11 +35,7 @@ namespace Ragon.Client
IsLocal = isLocal;
Name = name;
Id = playerId;
}
public void SetData(byte[] data)
{
Data = data;
UserData = new RagonUserData();
}
}
}