Facepunch.Steamworks/Generator/Program.cs

29 lines
627 B
C#
Raw Normal View History

2016-10-18 18:34:28 +03: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 18:34:28 +03:00
{
2016-10-31 12:00:47 +03:00
var content = System.IO.File.ReadAllText( "steam_sdk/steam_api.json" );
2016-10-18 18:34:28 +03:00
var def = Newtonsoft.Json.JsonConvert.DeserializeObject<SteamApiDefinition>( content );
Definitions = def;
2020-02-22 23:16:04 +03:00
var generator = new CodeWriter( def );
2016-10-18 18:34:28 +03:00
2019-04-16 13:45:44 +03:00
generator.ToFolder( "../Facepunch.Steamworks/Generated/" );
2016-10-18 18:34:28 +03:00
}
}
}