예제 #1
0
파일: Rpc.cs 프로젝트: wujun4code/Slark
        public static TMLobby RecallRpc(this IRpc host, TMLobby lobby)
        {
            var tupple = host.ReflectRpcFunctions();

            tupple.ForEach(t =>
            {
                lobby.Unregister(t.Item1);
            });
            return(lobby);
        }
예제 #2
0
파일: Rpc.cs 프로젝트: wujun4code/Slark
 public static void Unregister(this TMLobby server, string functionName)
 {
     server.Unregister(functionName);
 }
예제 #3
0
파일: Rpc.cs 프로젝트: wujun4code/Slark
 public static void Register(this TMLobby server, string functionName, RpcFunctionDelegate rpcFunction)
 {
     server.Register(functionName, new StandardRpcFunctionHandler(rpcFunction));
 }