I'm dissapointed that I've given up, but I just can't seem to return a list of monuments from the API_FindMonuments call. Below is what I have, and it always is null. Thanks in advance!
[PluginReference]
private Plugin MonumentFinder;
private List<Dictionary<string, object>> _monuments;
private void Init()
{
Puts("Initializing...");
_monuments = GetMonuments();
if (_monuments == null || _monuments.Count == 0)
{
Puts("couldn't retreive monuments");
}
else {
Puts("got monuments..");
}
}
private List<Dictionary<string, object>> GetMonuments(string filter = null)
{
return MonumentFinder?.Call("API_FindMonuments", filter) as List<Dictionary<string, object>>;
}