Пример #1
0
        public void Awake()
        {
            TileTerraformView tileTerraformView = this.GetTileTerraformView();

            tileTerraformView.tile    = this;
            tileTerraformView.terra   = this.GetTerra();
            tileTerraformView.auraMap = this.GetAuraMap();
        }
Пример #2
0
        public Dictionary <Tile, Dictionary <string, int> > GetCurrentAuraCountMap(List <Tile> terraformingTiles)
        {
            Dictionary <Tile, Dictionary <string, int> > auraCountMap = new Dictionary <Tile, Dictionary <string, int> >();

            foreach (Tile terraformingTile in terraformingTiles)
            {
                TileTerraformView tileTerraformView = terraformingTile.GetTileTerraformView();
                AuraMap           tileAuraMap       = tileTerraformView.auraMap;
                auraCountMap.Add(terraformingTile, tileAuraMap.GetCurrentAuraCount());
            }

            return(auraCountMap);
        }
Пример #3
0
        public Dictionary <Tile, Dictionary <string, int> > GetPostTerraformAuraCountMap(List <Tile> terraformingTiles)
        {
            Dictionary <Tile, Dictionary <string, int> > auraCountMap = new Dictionary <Tile, Dictionary <string, int> >();

            foreach (Tile terraformingTile in terraformingTiles)
            {
                TileTerraformView tileTerraformView = terraformingTile.GetTileTerraformView();
                AuraMap           tileAuraMap       = tileTerraformView.auraMap;
                string            previewTeam       = tileTerraformView.GetPreviewTerraformTeamName();
                int previewAura = tileTerraformView.GetPreviewTerraformAuraAmount();

                auraCountMap.Add(terraformingTile, tileAuraMap.GetPreviewAuraCount(previewTeam, previewAura));
            }

            return(auraCountMap);
        }