1
This commit is contained in:
@@ -89,15 +89,9 @@ namespace BITKit.Net
|
||||
_netProviderImplementation.ClientCommand(id, command);
|
||||
}
|
||||
|
||||
public UniTask<T> GetFromServer<T>(string addressablePath = Constant.System.Internal)
|
||||
{
|
||||
return _netProviderImplementation.GetFromServer<T>(addressablePath);
|
||||
}
|
||||
public UniTask<T> GetFromServer<T>(T command = default)=>_netProviderImplementation.GetFromServer<T>(command);
|
||||
|
||||
public UniTask<T> GetFromClient<T>(int id, string addressablePath = Constant.System.Internal)
|
||||
{
|
||||
return _netProviderImplementation.GetFromClient<T>(id, addressablePath);
|
||||
}
|
||||
public UniTask<T> GetFromClient<T>(int id, T command = default)=>_netProviderImplementation.GetFromClient(id, command);
|
||||
|
||||
public void AddRpcHandle(object rpcHandle)
|
||||
{
|
||||
@@ -109,11 +103,15 @@ namespace BITKit.Net
|
||||
_netProviderImplementation.AddCommandListener(handle);
|
||||
}
|
||||
|
||||
public void RemoveCommandListener<T>(Action<T> handle)
|
||||
public void AddCommandListener<T>(Func<T, T> func)
|
||||
{
|
||||
_netProviderImplementation.RemoveCommandListener(handle);
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void RemoveCommandListener<T>(Func<T, T> func)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public void SendRT(string rpcName, params object[] pars)
|
||||
{
|
||||
_netProviderImplementation.SendRT(rpcName, pars);
|
||||
|
Reference in New Issue
Block a user