private void ChangeInviteStateList(ulong uid, enInviteState state) { for (int i = 0; i < this.m_stateList.Count; i++) { if (uid == this.m_stateList[i].uid) { this.m_stateList[i].state = state; return; } } }
private void AddInviteStateList(ulong uid, uint time, enInviteState state) { for (int i = 0; i < this.m_stateList.Count; i++) { if (uid == this.m_stateList[i].uid) { this.m_stateList[i].uid = uid; this.m_stateList[i].time = time; this.m_stateList[i].state = state; return; } } InviteState item = new InviteState { uid = uid, time = time, state = state }; this.m_stateList.Add(item); }