mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
22 lines
445 B
C#
22 lines
445 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Generator
|
|
{
|
|
public partial class CodeWriter
|
|
{
|
|
void CustomEnums()
|
|
{
|
|
StartBlock( "enum CallbackType" );
|
|
foreach ( var c in def.callback_structs.OrderBy( x => x.CallbackId ) )
|
|
{
|
|
WriteLine( $"{c.Name.Replace( "_t", "" ) } = {c.CallbackId}," );
|
|
}
|
|
EndBlock();
|
|
}
|
|
}
|
|
}
|