feat(wip): room properties
This commit is contained in:
@@ -4,9 +4,17 @@ namespace Ragon.Client
|
||||
{
|
||||
public class RoomDataHandler: IHandler
|
||||
{
|
||||
private readonly RagonClient _client;
|
||||
public RoomDataHandler(RagonClient client)
|
||||
{
|
||||
_client = client;
|
||||
}
|
||||
|
||||
public void Handle(RagonBuffer reader)
|
||||
{
|
||||
var len = reader.ReadUShort();
|
||||
|
||||
_client.Room?.Data(reader);
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -19,12 +19,12 @@ using Ragon.Protocol;
|
||||
|
||||
namespace Ragon.Client;
|
||||
|
||||
internal class RawDataHandler: IHandler
|
||||
internal class RoomRawDataHandler: IHandler
|
||||
{
|
||||
private readonly RagonListenerList _listeners;
|
||||
private readonly RagonPlayerCache _playerCache;
|
||||
|
||||
public RawDataHandler(
|
||||
public RoomRawDataHandler(
|
||||
RagonPlayerCache playerCache,
|
||||
RagonListenerList listeners)
|
||||
{
|
||||
Reference in New Issue
Block a user