Beispiel #1
0
 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);
             }
         }
     }
 }
Beispiel #2
0
 void OnConnectToDF()
 {
     enabled    = true;
     regionMaps = DFConnection.Instance.PopRegionMapUpdate();
     worldMap   = DFConnection.Instance.PopWorldMapUpdate();
     if (regionMaps != null && worldMap != null)
     {
         GenerateRegionMeshes();
     }
     if (worldMap != null)
     {
         CopyFromRemote(worldMap);
     }
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 void OnConnectToDF()
 {
     enabled = true;
     regionMaps = DFConnection.Instance.PopRegionMapUpdate();
     worldMap = DFConnection.Instance.PopWorldMapUpdate();
     if (regionMaps != null && worldMap != null)
     {
         GenerateRegionMeshes();
     }
     if (worldMap != null)
     {
         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;
     }
 }
Beispiel #6
0
 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);
         }
     }
 }