public static void setAccountGender(GameGender gender) { JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setAccountGenderByString", new object[] { gender.ToString() }); }
private bool SetGender(string specifiedGender) { // Support strings of format "select m" and "m" by ignoring "select " from the input. string currentGender = specifiedGender.Replace("select ", string.Empty); this.selectedGender = (from g in GameSystemController.Instance.GameGenders where g.Name.Equals(currentGender, StringComparison.CurrentCultureIgnoreCase) || g.Abbreviation.Equals(currentGender, StringComparison.CurrentCultureIgnoreCase) select g).FirstOrDefault(); if (this.selectedGender == null) { WrmChargenCommon.SendErrorMessage(this.Session, string.Format("'{0}' is an invalid gender selection.", currentGender)); this.RefreshScreen(); } return(this.selectedGender != null); }
void IStatisticalData.setAccountGender(GameGender gender) { JoyYouNativeInterface.setAccountGender(gender); }