31 lines
764 B
C#
31 lines
764 B
C#
using Facepunch.Steamworks.Data;
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Facepunch.Steamworks.Data
|
|
{
|
|
[StructLayout( LayoutKind.Explicit, Pack = Platform.StructPlatformPackSize )]
|
|
internal struct NetKeyValue
|
|
{
|
|
[FieldOffset(0)]
|
|
internal NetConfig Value; // m_eValue ESteamNetworkingConfigValue
|
|
|
|
[FieldOffset( 4 )]
|
|
internal NetConfigType DataType; // m_eDataType ESteamNetworkingConfigDataType
|
|
|
|
[FieldOffset( 8 )]
|
|
internal long Int64Value; // m_int64 int64_t
|
|
|
|
[FieldOffset( 8 )]
|
|
internal int Int32Value; // m_val_int32 int32_t
|
|
|
|
[FieldOffset( 8 )]
|
|
internal float FloatValue; // m_val_float float
|
|
|
|
[FieldOffset( 8 )]
|
|
internal IntPtr PointerValue; // m_val_functionPtr void *
|
|
|
|
|
|
// TODO - support strings, maybe
|
|
}
|
|
} |