void Update() { regionMaps = DFConnection.Instance.PopRegionMapUpdate(); worldMap = DFConnection.Instance.PopWorldMapUpdate(); if (regionMaps != null) { GenerateRegionMeshes(); GenerateMesh(); } if (worldMap != null) { if (DFConnection.Instance.HasWorldMapPositionChanged()) { CopyFromRemote(worldMap); UpdateRegionPositions(worldMap); } else { if (GameSettings.Instance.rendering.drawClouds) { CopyClouds(worldMap); } } } }
void OnConnectToDF() { enabled = true; regionMaps = DFConnection.Instance.PopRegionMapUpdate(); worldMap = DFConnection.Instance.PopWorldMapUpdate(); if (regionMaps != null && worldMap != null) { GenerateRegionMeshes(); } if (worldMap != null) { CopyFromRemote(worldMap); } }
void Update() { regionMaps = DFConnection.Instance.PopRegionMapUpdate(); worldMap = DFConnection.Instance.PopWorldMapUpdate(); if (regionMaps != null && worldMap != null) { GenerateRegionMeshes(); } if (worldMap != null) { CopyFromRemote(worldMap); UpdateRegionPositions(worldMap); } //worldMap = DFConnection.Instance.PopWorldMapUpdate(); //if (worldMap != null) // if (madeTerrain) // CopyClouds(worldMap); // else // CopyFromRemote(worldMap); }
// Pop region map update. These change in adventure mode. public RemoteFortressReader.RegionMaps PopRegionMapUpdate() { lock (regionMapLock) { RemoteFortressReader.RegionMaps result = _netRegionMaps; _netRegionMaps = null; return result; } }
void Update() { regionMaps = DFConnection.Instance.PopRegionMapUpdate(); worldMap = DFConnection.Instance.PopWorldMapUpdate(); if (regionMaps != null) { GenerateRegionMeshes(); GenerateMesh(); } if (worldMap != null) { if (DFConnection.Instance.HasWorldMapPositionChanged()) { CopyFromRemote(worldMap); UpdateRegionPositions(worldMap); } else { if(GameSettings.Instance.rendering.drawClouds) CopyClouds(worldMap); } } }
void Update() { regionMaps = DFConnection.Instance.PopRegionMapUpdate(); worldMap = DFConnection.Instance.PopWorldMapUpdate(); if (regionMaps != null && worldMap != null) { GenerateRegionMeshes(); } if (worldMap != null) { if (DFConnection.Instance.HasWorldMapPositionChanged()) { CopyFromRemote(worldMap); UpdateRegionPositions(worldMap); } else { CopyClouds(worldMap); } } }