feat(wip) room properties
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user