mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-15 22:02:28 +03:00
Extract WriteEnum
This commit is contained in:
parent
2c54889462
commit
1e99eec50a
@ -38,7 +38,12 @@ namespace Generator
|
|||||||
if ( highest > int.MaxValue )
|
if ( highest > int.MaxValue )
|
||||||
t = "uint";
|
t = "uint";
|
||||||
|
|
||||||
|
WriteEnum( o, name, t );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void WriteEnum( SteamApiDefinition.EnumDef o, string name, string t = "int" )
|
||||||
|
{
|
||||||
StartBlock( $"{Cleanup.Expose( name )} enum {name} : {t}" );
|
StartBlock( $"{Cleanup.Expose( name )} enum {name} : {t}" );
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@ -91,5 +96,4 @@ namespace Generator
|
|||||||
WriteLine();
|
WriteLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user