Facepunch.Steamworks/Generator/CodeWriter/CustomEnums.cs
2020-02-19 13:11:40 +00:00

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