1
This commit is contained in:
@@ -74,7 +74,12 @@ namespace BITKit.Net.Kcp
|
||||
{
|
||||
_netServerImplementation.AddCommandListenerWithId(handle);
|
||||
}
|
||||
|
||||
|
||||
public void KickClient(int id)
|
||||
{
|
||||
_netServerImplementation.KickClient(id);
|
||||
}
|
||||
|
||||
[BIT]
|
||||
private void EditorStartServer()
|
||||
{
|
||||
@@ -127,12 +132,12 @@ namespace BITKit.Net.Kcp
|
||||
_server.AddCommandListener(handle);
|
||||
}
|
||||
|
||||
public void AddCommandListener<T>(Func<T, T> func)
|
||||
public void AddCommandListener<T>(Func<T,UniTask<T>> func)
|
||||
{
|
||||
_serverInstance.AddCommandListener(func);
|
||||
}
|
||||
|
||||
public void RemoveCommandListener<T>(Func<T, T> func)
|
||||
public void RemoveCommandListener<T>(Func<T,UniTask<T>> func)
|
||||
{
|
||||
_serverInstance.RemoveCommandListener(func);
|
||||
}
|
||||
|
Reference in New Issue
Block a user