示例#1
0
        protected override bool PrivateUpdate(ScenarioFrame frame)
        {
            foreach (SimDescription sim in new List <SimDescription>(HouseholdsEx.All(House)))
            {
                string reason = null;
                if (!ManagerSim.ValidSim(sim, out reason))
                {
                    Deaths.CleansingKill(sim, false);
                }
            }

            if (HouseholdsEx.NumSims(House) == 0)
            {
                return(true);
            }

            return(false);
        }