mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
25 lines
562 B
C#
25 lines
562 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Generator
|
|
{
|
|
class Program
|
|
{
|
|
static void Main( string[] args )
|
|
{
|
|
var content = System.IO.File.ReadAllText( "steam_api.json" );
|
|
var def = Newtonsoft.Json.JsonConvert.DeserializeObject<SteamApiDefinition>( content );
|
|
|
|
var generator = new CodeWriter( def );
|
|
|
|
generator.ToFolder( "../Facepunch.Steamworks/SteamNative/" );
|
|
}
|
|
}
|
|
}
|
|
|
|
|