示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        public static RAFFileEntry[] GetSkinsInibin(RafManager manager)
        {
            List <RAFFileEntry> results = new List <RAFFileEntry>();

            foreach (ChampionEnum champion in Enum.GetValues(typeof(ChampionEnum)))
            {
                string path   = string.Format("DATA/Characters/{0}/Skins/", champion.ToString());
                var    values = Array.FindAll(manager.GetFiles(path), x => x.Path.Contains(".inibin"));
                results.AddRange(values);
            }
            return(results.ToArray());
        }
示例#4
0
        public static RAFFileEntry[] GetChampionsInibin(RafManager manager)
        {
            List <RAFFileEntry> results = new List <RAFFileEntry>();

            var directories = manager.GetDirectories("DATA/Characters");

            foreach (var directory in directories)
            {
                string path = string.Format("DATA/Characters/{0}/{0}.inibin", directory);

                var result = manager.GetUpToDateFile(path);

                if (result != null)
                {
                    results.Add(result);
                }
            }

            return(results.ToArray());
        }
示例#5
0
        public static RAFFileEntry[] GetSpellsInibin(RafManager manager)
        {
            List <RAFFileEntry> results = new List <RAFFileEntry>();

            results.AddRange(manager.GetFilesInDirectory("DATA/Spells", ".inibin"));

            var dirs = manager.GetDirectories("DATA/Characters");

            foreach (var dir in dirs)
            {
                string path = "DATA/Characters/" + dir + "/Spells";

                var files = manager.GetFilesInDirectory(path, ".inibin");

                if (files.Length > 0)
                {
                    results.AddRange(files);
                }
            }

            return(results.ToArray());
        }
示例#6
0
 public InibinSynchronizer(string leagueOfLegendsPath, Assembly recordAssembly)
 {
     this.RecordAssembly      = recordAssembly;
     this.LeagueOfLegendsPath = leagueOfLegendsPath;
     this.RafManager          = new RafManager(leagueOfLegendsPath);
 }
示例#7
0
 public static RAFFileEntry[] GetItemInibin(RafManager manager)
 {
     return(manager.GetFilesInDirectory("DATA/Items", ".inibin"));
 }