mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 14:48:02 +03:00
Handle AppId_t arrays
This commit is contained in:
parent
01e7d1d378
commit
59f7e0ca0a
@ -24800,7 +24800,8 @@ namespace SteamNative
|
|||||||
public const int CallbackId = CallbackIdentifiers.ClientUGC + 16;
|
public const int CallbackId = CallbackIdentifiers.ClientUGC + 16;
|
||||||
public Result Result; // m_eResult enum EResult
|
public Result Result; // m_eResult enum EResult
|
||||||
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
|
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
|
||||||
public AppId_t [32] GAppIDs; // m_rgAppIDs AppId_t [32]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.U4)]
|
||||||
|
public AppId_t[] GAppIDs; // m_rgAppIDs AppId_t [32]
|
||||||
public uint NumAppDependencies; // m_nNumAppDependencies uint32
|
public uint NumAppDependencies; // m_nNumAppDependencies uint32
|
||||||
public uint TotalNumAppDependencies; // m_nTotalNumAppDependencies uint32
|
public uint TotalNumAppDependencies; // m_nTotalNumAppDependencies uint32
|
||||||
|
|
||||||
@ -24818,7 +24819,8 @@ namespace SteamNative
|
|||||||
{
|
{
|
||||||
public Result Result; // m_eResult enum EResult
|
public Result Result; // m_eResult enum EResult
|
||||||
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
|
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
|
||||||
public AppId_t [32] GAppIDs; // m_rgAppIDs AppId_t [32]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.U4)]
|
||||||
|
public AppId_t[] GAppIDs; // m_rgAppIDs AppId_t [32]
|
||||||
public uint NumAppDependencies; // m_nNumAppDependencies uint32
|
public uint NumAppDependencies; // m_nNumAppDependencies uint32
|
||||||
public uint TotalNumAppDependencies; // m_nTotalNumAppDependencies uint32
|
public uint TotalNumAppDependencies; // m_nTotalNumAppDependencies uint32
|
||||||
|
|
||||||
|
@ -192,6 +192,13 @@ namespace Generator
|
|||||||
t = "IntPtr";
|
t = "IntPtr";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (t.StartsWith("AppId_t ") && t.Contains("["))
|
||||||
|
{
|
||||||
|
var num = t.Replace("AppId_t", "").Trim('[', ']', ' ');
|
||||||
|
t = $"AppId_t[]";
|
||||||
|
WriteLine($"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U4)]");
|
||||||
|
}
|
||||||
|
|
||||||
WriteLine( $"public {t} {CleanMemberName( m.Name )}; // {m.Name} {m.Type}" );
|
WriteLine( $"public {t} {CleanMemberName( m.Name )}; // {m.Name} {m.Type}" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user