public static CharacterTitleEntry GetTitleEntry(TitleBitId titleBitId) { foreach (var characterTitleEntry in CharacterTitleEntries.Values) { if (characterTitleEntry.BitIndex == titleBitId) return characterTitleEntry; } return null; }
public static CharacterTitleEntry GetTitleEntry(TitleBitId titleBitId) { foreach (CharacterTitleEntry characterTitleEntry in TitleMgr.CharacterTitleEntries.Values) { if (characterTitleEntry.BitIndex == titleBitId) { return(characterTitleEntry); } } return((CharacterTitleEntry)null); }
public bool HasTitle(TitleBitId titleBitId) { CharacterTitleEntry titleEntry = TitleMgr.GetTitleEntry(titleBitId); if (titleEntry == null) return false; return HasTitle(titleEntry.TitleId); }