private string BuildNickName(UserQuest.UserProfession title, string nickname, string username) { if (string.IsNullOrEmpty(username)) { return(string.Empty); } StringBuilder sb = new StringBuilder(); if (title != UserQuest.UserProfession.None) { sb.AppendFormat("[{0}] ", UserQuest.ProfessionName(title)); } if (string.IsNullOrEmpty(nickname)) { nickname = username; } sb.Append(nickname); return(sb.ToString()); }
public PoolCountTitleCondition(GachaPool.PoolName poolName, int count, UserQuest.UserProfession profession) { Count = count; Title = profession; PoolName = poolName; }
public AnyOfGachaTitleCondition(string[] name, UserQuest.UserProfession profession) { Name = name; Count = 1; Title = profession; }
public CombinedGachaTitleCondition(IDictionary <string, int> nameCountMap, UserQuest.UserProfession profession, bool hidden) { NameCountMap = nameCountMap; Title = profession; Hidden = hidden; }
public SingleGachaTitleCondition(string name, int count, UserQuest.UserProfession profession) { Name = name; Count = count; Title = profession; }