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}" );
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@ -92,4 +97,3 @@ namespace Generator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user