public static TMLobby UseRpc(this IRpc host, TMLobby lobby) { var tupple = host.ReflectRpcFunctions(); tupple.ForEach(t => { lobby.Register(t.Item1, t.Item2); }); return(lobby); }
public static void Register(this TMLobby server, string functionName, RpcFunctionDelegate rpcFunction) { server.Register(functionName, new StandardRpcFunctionHandler(rpcFunction)); }