Extract WriteEnum

This commit is contained in:
Garry Newman 2020-02-19 09:00:56 +00:00
parent 2c54889462
commit 1e99eec50a

View File

@ -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();
} }
} }
}
} }