コード例 #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);
             }
         }
     }
 }
コード例 #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);
     }
 }
コード例 #3
0
ファイル: WorldMapMaker.cs プロジェクト: strich/armok-vision
 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);
 }
コード例 #4
0
ファイル: WorldMapMaker.cs プロジェクト: strich/armok-vision
 void OnConnectToDF()
 {
     enabled = true;
     regionMaps = DFConnection.Instance.PopRegionMapUpdate();
     worldMap = DFConnection.Instance.PopWorldMapUpdate();
     if (regionMaps != null && worldMap != null)
     {
         GenerateRegionMeshes();
     }
     if (worldMap != null)
     {
         CopyFromRemote(worldMap);
     }
 }
コード例 #5
0
 // Pop region map update. These change in adventure mode.
 public RemoteFortressReader.RegionMaps PopRegionMapUpdate()
 {
     lock (regionMapLock)
     {
         RemoteFortressReader.RegionMaps result = _netRegionMaps;
         _netRegionMaps = null;
         return result;
     }
 }
コード例 #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);
         }
     }
 }
コード例 #7
0
 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);
         }
     }
 }