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
@@ -14,6 +14,7 @@
* limitations under the License.
*/
using Ragon.Server.Data;
using Ragon.Server.IO;
namespace Ragon.Server.Lobby;
@@ -30,13 +31,14 @@ public class RagonLobbyPlayer
public INetworkConnection Connection { get; }
public string Id { get; private set; }
public string Name { get; private set; }
public string Payload { get; private set; }
public RagonLobbyPlayer(INetworkConnection connection, string id, string name, string payload)
public RagonData UserData { get; private set; }
public RagonLobbyPlayer(INetworkConnection connection, string id, string name, byte[] payload)
{
Id = id;
Name = name;
Payload = payload;
Connection = connection;
UserData = new RagonData(payload);
}
}