Loads a map list to an ADT Array. A map list is a list of maps from a file. SourceMod allows easy configuration of maplists through addons/sourcemod/configs/maplists.cfg. Each entry is given a name and a file (for example, "rtv" => "rtv.cfg"), or a name and a redirection (for example, "rtv" => "default"). This native will read a map list entry, cache the file, and return the list of maps it holds. Serial change numbers are used to identify if a map list has changed. Thus, if you pass a serial change number and it's equal to what SourceMod currently knows about the map list, then SourceMod won't re-parse the file. If the maps end up being read from the maps folder (MAPLIST_FLAG_MAPSFOLDER), they are automatically sorted in alphabetical, ascending order. Arrays created by this function are temporary and must be freed via CloseHandle(). Modifying arrays created by this function will not affect future return values or or the contents of arrays returned to other plugins.
native Handle ReadMapList(Handle array = INVALID_HANDLE, int& serial = -1, const char[] str = "default", int flags = 1 << 1)