feat(wip) room properties

This commit is contained in:
2024-04-14 19:07:48 +03:00
parent d115c98b79
commit accd442388
7 changed files with 55 additions and 8 deletions
+6 -2
View File
@@ -26,8 +26,7 @@ namespace Ragon.Client
public ushort PeerId { get; set; }
public bool IsRoomOwner { get; set; }
public bool IsLocal { get; set; }
public IRagonSerializable Data { get; set; }
public byte[] Data { get; private set; }
public RagonPlayer(ushort peerId, string playerId, string name, bool isRoomOwner, bool isLocal)
{
@@ -37,5 +36,10 @@ namespace Ragon.Client
Name = name;
Id = playerId;
}
public void SetData(byte[] data)
{
Data = data;
}
}
}