static void Main(string[] args) { logger.OnStartup(); DatabaseManager.Instance.Initialize(Assembly.GetEntryAssembly(), "127.0.0.1", "legends", "root", ""); RafManager manager = new RafManager(LeagueOfLegendsPath); var test = manager.GetFiles("ExpCurve.inibin"); DatabaseManager.Instance.DropTables(Assembly.GetAssembly(typeof(AIUnitRecord))); // JSONHashes hashes = new JSONHashes(Environment.CurrentDirectory + "/items.json","ITEMS"); var recordAssembly = Assembly.GetAssembly(typeof(AIUnitRecord)); BuildingSynchronizer.Synchronize(manager); MapSynchronizer.Synchronize(manager); ExperienceSynchronizer.Synchronize(manager); manager.Dispose(); InibinSynchronizer synchronizer = new InibinSynchronizer(LeagueOfLegendsPath, recordAssembly); synchronizer.Sync(); Console.Read(); }
static void Main(string[] args) { logger.OnStartup(); if (!DatabaseManager.Instance.Initialize(Assembly.GetAssembly(typeof(AIUnitRecord)), "Content")) { Console.Read(); Environment.Exit(1); } RafManager manager = new RafManager(LeagueOfLegendsPath); TroyListBuilder.GenerateTroybinlist("troybin.txt", ExtractedRAFOutputPath); DatabaseManager.Instance.DropAll(); // JSONHashes hashes = new JSONHashes(Environment.CurrentDirectory + "/items.json","ITEMS"); var recordAssembly = Assembly.GetAssembly(typeof(AIUnitRecord)); BuildingSynchronizer.Synchronize(manager); MapSynchronizer.Synchronize(manager); ExperienceSynchronizer.Synchronize(manager); manager.Dispose(); InibinSynchronizer synchronizer = new InibinSynchronizer(LeagueOfLegendsPath, recordAssembly); synchronizer.Sync(); Console.Read(); }