feat(wip): player properties
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
using Ragon.Protocol;
|
||||
using Ragon.Server.Data;
|
||||
using Ragon.Server.Entity;
|
||||
using Ragon.Server.IO;
|
||||
using Ragon.Server.Plugin;
|
||||
@@ -29,7 +30,8 @@ public class RagonRoom : IRagonRoom, IRagonAction
|
||||
public int PlayerMax { get; private set; }
|
||||
public int PlayerMin { get; private set; }
|
||||
public int PlayerCount => WaitPlayersList.Count;
|
||||
|
||||
|
||||
public RagonData UserData { get; set; }
|
||||
public RagonRoomPlayer Owner { get; private set; }
|
||||
public RagonBuffer Writer { get; }
|
||||
public IRoomPlugin Plugin { get; private set; }
|
||||
|
||||
@@ -30,15 +30,12 @@ public class RagonRoomPlayer
|
||||
public RagonRoom Room { get; private set; }
|
||||
public RagonEntityCache Entities { get; private set; }
|
||||
|
||||
public RagonData UserData { get; private set; }
|
||||
|
||||
public RagonRoomPlayer(INetworkConnection connection, string id, string name)
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
Connection = connection;
|
||||
Entities = new RagonEntityCache();
|
||||
UserData = new RagonData(Array.Empty<byte>());
|
||||
}
|
||||
|
||||
public void AttachEntity(RagonEntity entity)
|
||||
|
||||
Reference in New Issue
Block a user