private bool Initialise(string continent) { if (search == null || continent != search.continent) { HasInitialised = true; PathGraph.SearchEnabled = false; search = new Search(continent, logger, dataConfig); search.PathGraph.triangleWorld.NotifyChunkAdded = (e) => OnChunkAdded?.Invoke(e); OnReset?.Invoke(); return(true); } return(false); }
public void AddChunk(TerraWorldChunk chunk) { CurrentChunk = chunk; OnChunkAdded?.Invoke(chunk); }