29 lines
627 B
C#
Raw Permalink Normal View History

2016-10-18 16:34:28 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Generator
{
class Program
{
public static SteamApiDefinition Definitions;
static void Main( string[] args )
2016-10-18 16:34:28 +01:00
{
2016-10-31 09:00:47 +00:00
var content = System.IO.File.ReadAllText( "steam_sdk/steam_api.json" );
2016-10-18 16:34:28 +01:00
var def = Newtonsoft.Json.JsonConvert.DeserializeObject<SteamApiDefinition>( content );
Definitions = def;
2020-02-22 20:16:04 +00:00
var generator = new CodeWriter( def );
2016-10-18 16:34:28 +01:00
2019-04-16 11:45:44 +01:00
generator.ToFolder( "../Facepunch.Steamworks/Generated/" );
2016-10-18 16:34:28 +01:00
}
}
}