public void Awake() { TileTerraformView tileTerraformView = this.GetTileTerraformView(); tileTerraformView.tile = this; tileTerraformView.terra = this.GetTerra(); tileTerraformView.auraMap = this.GetAuraMap(); }
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); }
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); }