♻️ plugin api

This commit is contained in:
2023-04-14 14:32:04 +04:00
parent 6c4a51534a
commit fc28f512ba
21 changed files with 155 additions and 97 deletions
@@ -32,7 +32,8 @@ internal class AuthorizeSuccessHandler: Handler
{
var playerId = buffer.ReadString();
var playerName = buffer.ReadString();
var playerPayload = buffer.ReadString();
_listenerList.OnAuthorizationSuccess(playerId, playerName);
_listenerList.OnAuthorizationSuccess(playerId, playerName, playerPayload);
}
}
@@ -19,11 +19,11 @@ using Ragon.Protocol;
namespace Ragon.Client;
internal class EntityDestroyHandler: Handler
internal class EntityRemoveHandler: Handler
{
private readonly RagonEntityCache _entityCache;
public EntityDestroyHandler(RagonEntityCache entityCache)
public EntityRemoveHandler(RagonEntityCache entityCache)
{
_entityCache = entityCache;
}