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 )
t = "uint";
WriteEnum( o, name, t );
}
}
private void WriteEnum( SteamApiDefinition.EnumDef o, string name, string t = "int" )
{
StartBlock( $"{Cleanup.Expose( name )} enum {name} : {t}" );
{
//
@ -92,4 +97,3 @@ namespace Generator
}
}
}
}