public void Set(ActiveSessionGetRegisteredPlayerByIndexOptions other) { if (other != null) { m_ApiVersion = ActiveSession.ActivesessionGetregisteredplayerbyindexApiLatest; PlayerIndex = other.PlayerIndex; } }
/// <summary> /// <see cref="GetRegisteredPlayerByIndex" /> is used to immediately retrieve individual players registered with the active session. /// <seealso cref="GetRegisteredPlayerCount" /> /// <seealso cref="ActiveSessionGetRegisteredPlayerByIndexOptions" /> /// </summary> /// <param name="options">Structure containing the input parameters</param> /// <returns> /// the product user ID for the registered player at a given index or null if that index is invalid /// </returns> public ProductUserId GetRegisteredPlayerByIndex(ActiveSessionGetRegisteredPlayerByIndexOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <ActiveSessionGetRegisteredPlayerByIndexOptionsInternal, ActiveSessionGetRegisteredPlayerByIndexOptions>(ref optionsAddress, options); var funcResult = EOS_ActiveSession_GetRegisteredPlayerByIndex(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); ProductUserId funcResultReturn; Helper.TryMarshalGet(funcResult, out funcResultReturn); return(funcResultReturn); }