public static string GetVariantEmoji(string baseEmoji, NPCIdentityData identityData) { string skinToneSuffix = Emoji.GetSkinTones()[identityData.GetSkinToneIndex()]; string genderSuffix = Emoji.GetGenderSuffixes()[identityData.GetGenderIndex()]; return(baseEmoji + skinToneSuffix + genderSuffix); }
public static ICollection <string> GetAllGenderAndSkinToneVariants(string baseEmoji) { // Append all variants of skin tone and gender characters List <string> outStrings = new List <string>(); foreach (string skinTone in Emoji.GetSkinTones()) { foreach (string genderSuffix in Emoji.GetGenderSuffixes()) { outStrings.Add(baseEmoji + skinTone + genderSuffix); } } return(outStrings); }
public static int GetNumGenderVariations() { return(Emoji.GetGenderSuffixes().Length); }