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
|
|
|
|
|
{
|
2019-05-08 13:13:23 +03:00
|
|
|
|
public static SteamApiDefinition Definitions;
|
|
|
|
|
|
|
|
|
|
static void Main( string[] args )
|
2016-10-18 18:34:28 +03:00
|
|
|
|
{
|
2020-02-12 17:55:36 +03:00
|
|
|
|
var content = System.IO.File.ReadAllText( "steam_api.json" );
|
2016-10-18 18:34:28 +03:00
|
|
|
|
var def = Newtonsoft.Json.JsonConvert.DeserializeObject<SteamApiDefinition>( content );
|
|
|
|
|
|
2019-05-08 13:13:23 +03:00
|
|
|
|
Definitions = def;
|
|
|
|
|
|
2020-02-12 17:55:36 +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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|