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

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