Home › Engine Lua tables › Search

Engine executable. Settings and tools of the game program (CivilizationVI.exe), usable without a mod. Mostly undocumented debug and configuration functionality; descriptions come from analysis of the executable and have not all been tried in the running game.

Search

Static table with 7 methods. named from how the game scripts call it (7 of 7 methods matched). Registering function 0x4d7990.

Methods are called with a dot (Search.Method(...)).

Method Returns In game scripts Example Status
Search.AddData(searchContext: string, arg2: string, arg3: string, arg4: string, [arg5: table]) -> boolean, boolean boolean, boolean 21 calls, 6 files Search.AddData(SEARCHCONTEXT_SUGGESTIONS, szTerm, szTerm, "") inferred
Search.ClearData(arg1: string) -> boolean boolean 2 calls, 2 files Search.ClearData(g_SearchContext) inferred
Search.CreateContext(arg1: string, arg2: string, arg3: string, arg4: string) -> boolean boolean 6 calls, 5 files if (Search.CreateContext(SEARCHCONTEXT_MAPSEARCH, "", "", "...") inferred
Search.DestroyContext(arg1: string) -> boolean boolean 5 calls, 4 files Search.DestroyContext("Civics") inferred
Search.HasContext(arg1: string) -> boolean boolean 1 calls, 1 files if(Search.HasContext(g_SearchContext) inferred
Search.Optimize(arg1: string) -> boolean boolean 6 calls, 5 files Search.Optimize(searchContext) inferred
Search.Search(arg1: string, str: string, [arg3: integer], …) -> table, table table, table 10 calls, 5 files local results = Search.Search("Civilopedia", str) inferred