예제 #1
0
        public static string GetMotiveLocalizedName(CommodityKind kind)
        {
            switch (kind)
            {
                case CommodityKind.Hunger:
                case CommodityKind.Energy:
                case CommodityKind.Hygiene:
                case CommodityKind.Fun:
                case CommodityKind.Social:
                case CommodityKind.Bladder:
                case CommodityKind.AlienBrainPower:
                    return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + kind);
                case CommodityKind.DogDestruction:
                    return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveDestructionDog");
                case CommodityKind.CatScratch:
                    return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveScratchCat");
                case CommodityKind.HorseThirst:
                    return Common.Localize("Species:Horse") + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveThirstHorse");
                case CommodityKind.HorseExercise:
                    return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveExerciseHorse");
                case CommodityKind.VampireThirst:
                    return OccultManager.GetSingularOccultName(OccultTypesAll.Vampire) + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveHungerVampire");
            }

            string result;
            if (Common.Localize("Commodity:" + kind.ToString(), false, new object[0], out result))
            {
                return result;
            }
            else
            {
                return kind.ToString();
            }
        }
예제 #2
0
        public static string GetMotiveLocalizedName(CommodityKind kind)
        {
            switch (kind)
            {
            case CommodityKind.Hunger:
            case CommodityKind.Energy:
            case CommodityKind.Hygiene:
            case CommodityKind.Fun:
            case CommodityKind.Social:
            case CommodityKind.Bladder:
            case CommodityKind.AlienBrainPower:
                return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + kind));

            case CommodityKind.DogDestruction:
                return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveDestructionDog"));

            case CommodityKind.CatScratch:
                return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveScratchCat"));

            case CommodityKind.HorseThirst:
                return(Common.Localize("Species:Horse") + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveThirstHorse"));

            case CommodityKind.HorseExercise:
                return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveExerciseHorse"));

            case CommodityKind.VampireThirst:
                return(OccultManager.GetSingularOccultName(OccultTypesAll.Vampire) + " " + Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:MotiveHungerVampire"));
            }

            string result;

            if (Common.Localize("Commodity:" + kind.ToString(), false, new object[0], out result))
            {
                return(result);
            }
            else
            {
                return(kind.ToString());
            }
        }
예제 #3
0
파일: Mood.cs 프로젝트: yakoder/NRaas
            public MotiveValue(CommodityKind name, Motive value)
            {
                if (!Common.Localize("CommodityKind:" + name, false, new object[0], out mName))
                {
                    mName = name.ToString();
                }

                if (value != null)
                {
                    mValue  = (int)value.Value;
                    mExists = true;
                }
            }
예제 #4
0
파일: Mood.cs 프로젝트: Robobeurre/NRaas
            public MotiveValue(CommodityKind name, Motive value)
            {
                if (!Common.Localize("CommodityKind:" + name, false, new object[0], out mName))
                {
                    mName = name.ToString();
                }

                if (value != null)
                {
                    mValue = (int)value.Value;
                    mExists = true;
                }
            }
예제 #5
0
        public static string FetchMotiveLocalization(CASAgeGenderFlags flag, CommodityKind motive)
        {
            string str = "";
            switch (motive)
            {
                case CommodityKind.Hygiene:
                    if (flag == CASAgeGenderFlags.Cat) str = "Scratch";
                    if (flag == CASAgeGenderFlags.Dog) str = "Destruction";
                    if (flag == CASAgeGenderFlags.Horse) str = "Exercise";
                break;
                case CommodityKind.Fun:
                    if (flag == CASAgeGenderFlags.Horse) str = "Thirst";
                break;
                case CommodityKind.Temperature:
                    return Common.Localize("TagData:Temperature");                
                default:
                break;
            }

            return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + str + (flag == CASAgeGenderFlags.Human ? motive.ToString() : flag.ToString()));
        }
예제 #6
0
        public static string FetchMotiveLocalization(CASAgeGenderFlags flag, CommodityKind motive)
        {
            string str = "";

            switch (motive)
            {
            case CommodityKind.Hygiene:
                if (flag == CASAgeGenderFlags.Cat)
                {
                    str = "Scratch";
                }
                if (flag == CASAgeGenderFlags.Dog)
                {
                    str = "Destruction";
                }
                if (flag == CASAgeGenderFlags.Horse)
                {
                    str = "Exercise";
                }
                break;

            case CommodityKind.Fun:
                if (flag == CASAgeGenderFlags.Horse)
                {
                    str = "Thirst";
                }
                break;

            default:
                break;
            }

            return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + str + (flag == CASAgeGenderFlags.Human || str == "B" ? motive.ToString() : flag.ToString())));
        }
예제 #7
0
 public CommodityOption(CommodityKind type)
 {
     mType = type;
     mName = mType.ToString();
 }