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_; }
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(""); }
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); }
private bool IsValid() { return(RailComparableID.op_Inequality((RailComparableID)this._local_id, (RailComparableID)null) && ((RailComparableID)this._local_id).IsValid()); }