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