Ejemplo n.º 1
0
 public void SetLocalPeer(RailID rail_id)
 {
     if (RailComparableID.op_Equality((RailComparableID)this._local_id, (RailComparableID)null))
     {
         this._local_id = new RailID();
     }
     ((RailComparableID)this._local_id).id_ = ((RailComparableID)rail_id).id_;
 }
Ejemplo n.º 2
0
 private string GetFriendNickname(RailID rail_id)
 {
     if (this._player_info_list != null)
     {
         using (List <PlayerPersonalInfo> .Enumerator enumerator = this._player_info_list.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 PlayerPersonalInfo current = enumerator.Current;
                 if (RailComparableID.op_Equality((RailComparableID)current.rail_id, (RailComparableID)rail_id))
                 {
                     return((string)current.rail_name);
                 }
             }
         }
     }
     return("");
 }
Ejemplo n.º 3
0
        private bool IsWeGameFriend(RailID id)
        {
            bool flag = false;

            if (this._wegameFriendList != null)
            {
                using (List <RailFriendInfo> .Enumerator enumerator = this._wegameFriendList.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        if (RailComparableID.op_Equality((RailComparableID)enumerator.Current.friend_rail_id, (RailComparableID)id))
                        {
                            flag = true;
                            break;
                        }
                    }
                }
            }
            return(flag);
        }
Ejemplo n.º 4
0
 private bool IsValid()
 {
     return(RailComparableID.op_Inequality((RailComparableID)this._local_id, (RailComparableID)null) && ((RailComparableID)this._local_id).IsValid());
 }