private void LocalChunksArrived(GetLocalMapResponse response) { // TODO use real data about trees and other stuff //EventBus.instance.MapObjectsLoaded(response.Map.Buildings, 10); // Transfer fake heights EventBus.instance.TerrainLoaded(GetHeights(), 0, 0); }
public void LocalMapChunksLoaded(GetLocalMapResponse localChunksReponse) { onLocalChunksArrived?.Invoke(localChunksReponse); }
private void ProcessLocalChunksReply(GetLocalMapResponse localChunksResponse) { Debug.Log("Received local chunks reply: " + localChunksResponse); EventBus.instance.LocalMapChunksLoaded(localChunksResponse); }