mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
28 lines
718 B
C#
28 lines
718 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Generator
|
|
{
|
|
public partial class CodeWriter
|
|
{
|
|
private void Constants()
|
|
{
|
|
StartBlock( "public static class CallbackIdentifiers" );
|
|
foreach ( var o in def.CallbackIds )
|
|
{
|
|
WriteLine( $"public const int {o.Key} = {o.Value};" );
|
|
}
|
|
EndBlock();
|
|
|
|
StartBlock( "public static class Defines" );
|
|
foreach ( var o in def.Defines )
|
|
{
|
|
WriteLine( $"public const string {o.Key} = \"{o.Value}\";" );
|
|
}
|
|
EndBlock();
|
|
}
|
|
}
|
|
} |