You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.5 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.RTC
{
/// <summary>
/// This struct is used to call <see cref="RTCInterface.LeaveRoom" />.
/// </summary>
public struct LeaveRoomOptions
{
/// <summary>
/// Product User ID of the user requesting to leave the room
/// </summary>
public ProductUserId LocalUserId { get; set; }
/// <summary>
/// The room to leave.
/// </summary>
public Utf8String RoomName { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct LeaveRoomOptionsInternal : ISettable<LeaveRoomOptions>, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_RoomName;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public Utf8String RoomName
{
set
{
Helper.Set(value, ref m_RoomName);
}
}
public void Set(ref LeaveRoomOptions other)
{
m_ApiVersion = RTCInterface.LeaveroomApiLatest;
LocalUserId = other.LocalUserId;
RoomName = other.RoomName;
}
public void Set(ref LeaveRoomOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = RTCInterface.LeaveroomApiLatest;
LocalUserId = other.Value.LocalUserId;
RoomName = other.Value.RoomName;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_RoomName);
}
}
}