コード例 #1
0
 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);
 }
コード例 #2
0
 public void AddChunk(TerraWorldChunk chunk)
 {
     CurrentChunk = chunk;
     OnChunkAdded?.Invoke(chunk);
 }