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