コード例 #1
0
 public KillScenario(SimDescription sim, SimDescription killer, SimDescription.DeathType deathType)
     : base(sim)
 {
     mKiller    = killer;
     mDeathType = deathType;
     mStoryName = deathType.ToString();
 }
コード例 #2
0
ファイル: Urnstones.cs プロジェクト: yakoder/NRaas
        public static string GetLocalizedString(bool isFemale, SimDescription.DeathType type)
        {
            switch (type)
            {
            case SimDescription.DeathType.None:
                return("");

            case SimDescription.DeathType.PetOldAgeBad:
            case SimDescription.DeathType.PetOldAgeGood:
                return(Common.LocalizeEAString(isFemale, "Gameplay/Objects/Urnstone:" + type.ToString()));
            }

            return(Urnstone.DeathTypeToLocalizedString(type));
        }