mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-16 14:22:27 +03:00
structs can have embedded enums
This commit is contained in:
parent
4cd8675356
commit
0a43db11ec
@ -54,7 +54,7 @@ public static class Cleanup
|
|||||||
type = type.Replace( "ISteamNetworkingMessage", "NetMsg" );
|
type = type.Replace( "ISteamNetworkingMessage", "NetMsg" );
|
||||||
type = type.Replace( "SteamNetworkingMessage_t", "NetMsg" );
|
type = type.Replace( "SteamNetworkingMessage_t", "NetMsg" );
|
||||||
|
|
||||||
type = type.Replace( "RequestPlayersForGameResultCallback_t_PlayerAcceptState_t", "PlayerAcceptState_t" );
|
type = type.Replace( "::", "." );
|
||||||
|
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,14 @@ namespace Generator
|
|||||||
StructFields( c.Fields );
|
StructFields( c.Fields );
|
||||||
WriteLine();
|
WriteLine();
|
||||||
|
|
||||||
|
if ( c.Enums != null )
|
||||||
|
{
|
||||||
|
foreach ( var e in c.Enums )
|
||||||
|
{
|
||||||
|
WriteEnum( e, e.Name );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
EndBlock();
|
EndBlock();
|
||||||
WriteLine();
|
WriteLine();
|
||||||
|
@ -89,8 +89,16 @@ namespace Generator
|
|||||||
WriteLine( "#endregion" );
|
WriteLine( "#endregion" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ( c.CallbackId ) )
|
if ( c.Enums != null )
|
||||||
{
|
{
|
||||||
|
foreach ( var e in c.Enums )
|
||||||
|
{
|
||||||
|
WriteEnum( e, e.Name );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// if ( c.CallbackId ) )
|
||||||
|
{
|
||||||
callbackList.Add( c );
|
callbackList.Add( c );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,6 +101,8 @@ namespace Generator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EnumDef[] Enums { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<StructDef> structs { get; set; }
|
public List<StructDef> structs { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user