Exemplo n.º 1
0
        public static TMLobby RecallRpc(this IRpc host, TMLobby lobby)
        {
            var tupple = host.ReflectRpcFunctions();

            tupple.ForEach(t =>
            {
                lobby.Unregister(t.Item1);
            });
            return(lobby);
        }
Exemplo n.º 2
0
 public static void Unregister(this TMLobby server, string functionName)
 {
     server.Unregister(functionName);
 }
Exemplo n.º 3
0
 public static void Register(this TMLobby server, string functionName, RpcFunctionDelegate rpcFunction)
 {
     server.Register(functionName, new StandardRpcFunctionHandler(rpcFunction));
 }