Beispiel #1
0
        private static void UpdateAppearance(int newActorId)
        {
            switch (Main.Settings.Appearance)
            {
            case Settings.Enums.Appearance.Keep:
                Taiwu.SetAppearance(newActorId, Taiwu.GetAppearance());
                break;

            case Settings.Enums.Appearance.Change:
                Taiwu.SetAppearance(newActorId, Taiwu.IsMale(newActorId) ? Main.Settings.AppearanceMale : Main.Settings.AppearanceFemale);
                break;
            }
        }
Beispiel #2
0
        private static void UpdateName(int newActorId)
        {
            switch (Main.Settings.Name)
            {
            case Settings.Enums.Name.Keep:
                Taiwu.SetSurname(newActorId, Taiwu.GetSurname());
                Taiwu.SetForename(newActorId, Taiwu.GetForename());
                break;

            case Settings.Enums.Name.Change:
                Taiwu.SetSurname(newActorId, Taiwu.IsMale(newActorId) ? Main.Settings.SurnameMale : Main.Settings.SurnameFemale);
                Taiwu.SetForename(newActorId, Taiwu.IsMale(newActorId) ? Main.Settings.ForenameMale : Main.Settings.ForenameFemale);
                break;
            }
        }