Example #1
0
 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;
         }
     }
 }
Example #2
0
        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);
        }