This commit is contained in:
CortexCore
2024-06-12 16:01:56 +08:00
parent 01b19130a9
commit 126131b842
8 changed files with 208 additions and 112 deletions

View File

@@ -74,7 +74,7 @@ namespace BITKit
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
UniTask<T> GetFromServer<T>(T command = default);
UniTask<T> GetFromServer<T>(string path = null,T command = default);
/// <summary>
/// 从客户端获取数据
@@ -83,7 +83,7 @@ namespace BITKit
/// <param name="addressablePath">可寻址路劲 e.g. Key</param>
/// <typeparam name="T">远程指令类型</typeparam>
/// <returns></returns>
UniTask<T> GetFromClient<T>(int id,T command = default);
UniTask<T> GetFromClient<T>(int id,string path = null,T command = default);
/// <summary>
/// 添加RPC远程服务服务类型为需要的方法标记[RPC]