diff options
author | chai <215380520@qq.com> | 2023-11-25 18:39:02 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-11-25 18:39:02 +0800 |
commit | 0e63c4a2c6dec8dfa260501fb7d73750261ea7b7 (patch) | |
tree | f6f2291be65d195d6082b523a56183c332715240 /Assembly_Firstpass/Steamworks/GameServerChangeRequested_t.cs |
+ init
Diffstat (limited to 'Assembly_Firstpass/Steamworks/GameServerChangeRequested_t.cs')
-rw-r--r-- | Assembly_Firstpass/Steamworks/GameServerChangeRequested_t.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/GameServerChangeRequested_t.cs b/Assembly_Firstpass/Steamworks/GameServerChangeRequested_t.cs new file mode 100644 index 0000000..57a4d47 --- /dev/null +++ b/Assembly_Firstpass/Steamworks/GameServerChangeRequested_t.cs @@ -0,0 +1,40 @@ +using System.Runtime.InteropServices; + +namespace Steamworks; + +[StructLayout(LayoutKind.Sequential, Pack = 8)] +[CallbackIdentity(332)] +public struct GameServerChangeRequested_t +{ + public const int k_iCallback = 332; + + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] + private byte[] m_rgchServer_; + + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] + private byte[] m_rgchPassword_; + + public string m_rgchServer + { + get + { + return InteropHelp.ByteArrayToStringUTF8(m_rgchServer_); + } + set + { + InteropHelp.StringToByteArrayUTF8(value, m_rgchServer_, 64); + } + } + + public string m_rgchPassword + { + get + { + return InteropHelp.ByteArrayToStringUTF8(m_rgchPassword_); + } + set + { + InteropHelp.StringToByteArrayUTF8(value, m_rgchPassword_, 64); + } + } +} |