示例#1
0
 public void Set(LobbyDetailsGetMemberByIndexOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LobbyDetails.LobbydetailsGetmemberbyindexApiLatest;
         MemberIndex  = other.MemberIndex;
     }
 }
示例#2
0
        /// <summary>
        /// Short GetMemberByIndex
        /// </summary>
        /// <returns>user id</returns>
        public static ProductUserId GetMemberByIndex(this LobbyDetails detail, uint MemberIndex)
        {
            var op = new LobbyDetailsGetMemberByIndexOptions
            {
                MemberIndex = MemberIndex
            };

            return(detail.GetMemberByIndex(op));
        }
        /// <summary>
        /// <see cref="GetMemberByIndex" /> is used to immediately retrieve individual members registered with a lobby.
        /// <seealso cref="GetMemberCount" />
        /// <seealso cref="LobbyDetailsGetMemberByIndexOptions" />
        /// </summary>
        /// <param name="options">Structure containing the input parameters</param>
        /// <returns>
        /// the product user ID for the registered member at a given index or null if that index is invalid
        /// </returns>
        public ProductUserId GetMemberByIndex(LobbyDetailsGetMemberByIndexOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbyDetailsGetMemberByIndexOptionsInternal, LobbyDetailsGetMemberByIndexOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbyDetails_GetMemberByIndex(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            ProductUserId funcResultReturn;

            Helper.TryMarshalGet(funcResult, out funcResultReturn);
            return(funcResultReturn);
        }