public LuaFunctionInfo FetchFunctionInfo(int pageid, string name) { Console.WriteLine($" Fetching function: {name} - {pageid}"); var root = FetchPage(pageid); var info = LuaFunctionInfo.ConvertRoot(root); if (info != null) { info.Name = name; } return(info); }
public List <LuaFunctionInfo> FetchFunctionInfo(Dictionary <int, string> dict) { Console.WriteLine(" Fetching functions - " + String.Join(", ", dict.Values)); var pages = FetchPages(dict.Keys.ToArray()); var infos = new List <LuaFunctionInfo>(); foreach (var entry in pages) { var info = LuaFunctionInfo.ConvertRoot(entry.Value); if (info != null) { info.Name = dict[entry.Key]; infos.Add(info); } } return(infos); }