mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-16 06:12:28 +03:00
plain uint arrays
This commit is contained in:
parent
d42c510f6e
commit
a605bc683d
@ -136,6 +136,13 @@ namespace Generator
|
|||||||
WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U4)]" );
|
WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U4)]" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( t.StartsWith( "uint " ) && t.Contains( "[" ) )
|
||||||
|
{
|
||||||
|
var num = t.Replace( "uint", "" ).Trim( '[', ']', ' ' );
|
||||||
|
t = $"uint[]";
|
||||||
|
WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U4)]" );
|
||||||
|
}
|
||||||
|
|
||||||
if ( t.StartsWith( "float " ) && t.Contains( "[" ) )
|
if ( t.StartsWith( "float " ) && t.Contains( "[" ) )
|
||||||
{
|
{
|
||||||
var num = t.Replace( "float", "" ).Trim( '[', ']', ' ' );
|
var num = t.Replace( "float", "" ).Trim( '[', ']', ' ' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user