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.
92 lines
2.0 KiB
92 lines
2.0 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Lobby
|
|
{
|
|
/// <summary>
|
|
/// An attribute and its visibility setting stored with a lobby.
|
|
/// Used to store both lobby and lobby member data
|
|
/// </summary>
|
|
public struct Attribute
|
|
{
|
|
/// <summary>
|
|
/// Key/Value pair describing the attribute
|
|
/// </summary>
|
|
public AttributeData? Data { get; set; }
|
|
|
|
/// <summary>
|
|
/// Is this attribute public or private to the lobby and its members
|
|
/// </summary>
|
|
public LobbyAttributeVisibility Visibility { get; set; }
|
|
|
|
internal void Set(ref AttributeInternal other)
|
|
{
|
|
Data = other.Data;
|
|
Visibility = other.Visibility;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct AttributeInternal : IGettable<Attribute>, ISettable<Attribute>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_Data;
|
|
private LobbyAttributeVisibility m_Visibility;
|
|
|
|
public AttributeData? Data
|
|
{
|
|
get
|
|
{
|
|
AttributeData? value;
|
|
Helper.Get<AttributeDataInternal, AttributeData>(m_Data, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set<AttributeData, AttributeDataInternal>(ref value, ref m_Data);
|
|
}
|
|
}
|
|
|
|
public LobbyAttributeVisibility Visibility
|
|
{
|
|
get
|
|
{
|
|
return m_Visibility;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_Visibility = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref Attribute other)
|
|
{
|
|
m_ApiVersion = LobbyInterface.AttributeApiLatest;
|
|
Data = other.Data;
|
|
Visibility = other.Visibility;
|
|
}
|
|
|
|
public void Set(ref Attribute? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = LobbyInterface.AttributeApiLatest;
|
|
Data = other.Value.Data;
|
|
Visibility = other.Value.Visibility;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_Data);
|
|
}
|
|
|
|
public void Get(out Attribute output)
|
|
{
|
|
output = new Attribute();
|
|
output.Set(ref this);
|
|
}
|
|
}
|
|
}
|