public void Set(ActiveSessionGetRegisteredPlayerCountOptions other) { if (other != null) { m_ApiVersion = ActiveSession.ActivesessionGetregisteredplayercountApiLatest; } }
/// <summary> /// Get the number of registered players associated with this active session /// </summary> /// <param name="options">the Options associated with retrieving the registered player count</param> /// <returns> /// number of registered players in the active session or 0 if there is an error /// </returns> public uint GetRegisteredPlayerCount(ActiveSessionGetRegisteredPlayerCountOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <ActiveSessionGetRegisteredPlayerCountOptionsInternal, ActiveSessionGetRegisteredPlayerCountOptions>(ref optionsAddress, options); var funcResult = EOS_ActiveSession_GetRegisteredPlayerCount(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }