Exemplo n.º 1
0
    public void RemoveGlobalRegionPopulation(string i_RegionName, int i_PopulationRemoved)
    {
        GlobalRegionInfo globalRegionInfo = GetGlobalRegionInfo(i_RegionName);

        globalRegionInfo.Population -= i_PopulationRemoved;
        if (globalRegionInfo.Population < 0)
        {
            i_PopulationRemoved        += (int)globalRegionInfo.Population;
            globalRegionInfo.Population = 0;
        }
        m_ScoreController.AddCasualtiesToScore(i_PopulationRemoved);
    }