示例#1
0
        public static bool IsOldEnoughToAge(AgingManager manager, AgingState state)
        {
            if (state == null) return true;

            if (state.SimDescription.Elder)
            {
                if (state.AgingYearsPassedSinceLastTransition >= manager.SimDaysToAgingYears(state.MinimumElderLifeSpanInSimDays)) return true;
            }
            else
            {
                if (manager.SimIsCloseToAging(state, 0)) return true;
            }

            return false;
        }
示例#2
0
        public static bool IsOldEnoughToAge(AgingManager manager, AgingState state)
        {
            if (state == null)
            {
                return(true);
            }

            if (state.SimDescription.Elder)
            {
                if (state.AgingYearsPassedSinceLastTransition >= manager.SimDaysToAgingYears(state.MinimumElderLifeSpanInSimDays))
                {
                    return(true);
                }
            }
            else
            {
                if (manager.SimIsCloseToAging(state, 0))
                {
                    return(true);
                }
            }

            return(false);
        }