private int GetFriendBlackIndex(ulong ullUid, uint dwLogicWorldID) { for (int i = 0; i < this.m_blackList_friend.Count; i++) { stBlackName name = this.m_blackList_friend[i]; if ((name.ullUid == ullUid) && (name.dwLogicWorldId == dwLogicWorldID)) { return(i); } } return(-1); }
public string GetBlackName(ulong ullUid, uint dwLogicWorldId) { for (int i = 0; i < this.m_blackList_friend.Count; i++) { stBlackName name = this.m_blackList_friend[i]; if ((name.ullUid == ullUid) && (name.dwLogicWorldId == dwLogicWorldId)) { return(name.name); } } return(string.Empty); }