Restructuring of the files
This commit is contained in:
31
Facepunch.Steamworks/Networking/NetKeyValue.cs
Normal file
31
Facepunch.Steamworks/Networking/NetKeyValue.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user