// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.P2P { /// /// Structure containing information about new relay configurations. /// public struct SetRelayControlOptions { /// /// The requested level of relay servers for P2P connections. This setting is only applied to new P2P connections, or when existing P2P connections /// reconnect during a temporary connectivity outage. Peers with an incompatible setting to the local setting will not be able to connect. /// public RelayControl RelayControl { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct SetRelayControlOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private RelayControl m_RelayControl; public RelayControl RelayControl { set { m_RelayControl = value; } } public void Set(ref SetRelayControlOptions other) { m_ApiVersion = P2PInterface.SetrelaycontrolApiLatest; RelayControl = other.RelayControl; } public void Set(ref SetRelayControlOptions? other) { if (other.HasValue) { m_ApiVersion = P2PInterface.SetrelaycontrolApiLatest; RelayControl = other.Value.RelayControl; } } public void Dispose() { } } }