Ejemplo n.º 1
0
        static bool Prefix(ref Verse.Name __result, Pawn pawn, NameStyle style = NameStyle.Full, string forcedLastName = null)
        {
            FemaleNames nameGenF = new FemaleNames();
            MaleNames   nameGenM = new MaleNames();
            NameTriple  temp     = pawn.Name as NameTriple;


            if (pawn.RaceProps.Animal && pawn.Name == null)
            {
                //這裡就走原生的路線
                // __result = new NameTriple("小","動","物") ;
                return(true);
            }

            if (pawn.gender == Gender.Female)
            {
                __result = nameGenF.GetChineseFemaleName(pawn);
            }
            else
            {
                __result = nameGenM.GetChineseMaleName(pawn);
            }

            return(false);
        }
Ejemplo n.º 2
0
        static bool Prefix(ref Verse.Name __result, Gender gender, string requiredLastName = null)
        {
            FemaleNames nameGenF = new FemaleNames();
            MaleNames   nameGenM = new MaleNames();

            "Harvest".Translate();
            if (gender == Gender.Female)
            {
                __result = nameGenF.GetChineseFemaleName(null);
            }
            else
            {
                __result = nameGenM.GetChineseMaleName(null);
            }

            // 用Find去找資料 Find.CurrentMap
            return(false);
        }