Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            MetaDump dump = MetaDump.Deserialize(File.ReadAllText(@"C:\Users\Crauzer\Downloads\meta_11.8.370.4668.json"));

            List <string> propertyNames = new List <string>();
            List <string> classNames    = new List <string>();

            foreach (string line in File.ReadAllLines(@"C:\Users\Crauzer\Documents\Fantome\Scavenger\Scavenger\bin\x64\ReleasePortable\netcoreapp3.1\win-x64\publish\FIELDS_HASHTABLE.txt"))
            {
                propertyNames.Add(line.Split(' ')[1]);
            }
            foreach (string line in File.ReadAllLines(@"C:\Users\Crauzer\Documents\Fantome\Scavenger\Scavenger\bin\x64\ReleasePortable\netcoreapp3.1\win-x64\publish\TYPES_HASHTABLE.txt"))
            {
                classNames.Add(line.Split(' ')[1]);
            }

            dump.WriteMetaClasses(@"C:\Users\Crauzer\Downloads\meta_11.8.370.4668.cs", classNames, propertyNames);

            LeagueAnimation anm = new(@"C:\Users\Crauzer\Desktop\New folder (3)\assets\characters\rengar\skins\base\animations\rengar_attack4.anm");

            BinTree nn    = new BinTree(@"C:\Users\Crauzer\Downloads\D373034A82E109D1.bin");
            BinTree panth = new BinTree(@"C:\Users\Crauzer\Desktop\skin0.bin");

            BinTree         binTree     = new BinTree(@"C:\Users\Crauzer\Desktop\New folder\data\characters\aatrox\skins\skin0.bin");
            MetaEnvironment environment = MetaEnvironment.Create(
                Assembly.GetExecutingAssembly()
                .GetTypes()
                .Where(x => x.IsClass && x.Namespace == "LeagueToolkit.Meta.Classes")
                .ToList());


            //var scdp = MetaSerializer.Deserialize<SkinCharacterDataProperties>(environment, binTree.Objects[0]);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            BinTree nn = new BinTree(@"C:\Users\Crauzer\Downloads\D373034A82E109D1.bin");


            BinTree         binTree     = new BinTree(@"C:\Users\Crauzer\Desktop\New folder\data\characters\aatrox\skins\skin0.bin");
            MetaEnvironment environment = MetaEnvironment.Create(
                Assembly.GetExecutingAssembly()
                .GetTypes()
                .Where(x => x.IsClass && x.Namespace == "LeagueToolkit.Meta.Classes")
                .ToList());

            MetaDump dump = MetaDump.Deserialize(File.ReadAllText(@"C:\Users\Crauzer\Downloads\meta_10.21.339.2173.json"));

            List <string> propertyNames = new List <string>();
            List <string> classNames    = new List <string>();

            foreach (string line in File.ReadAllLines(@"C:\Users\Crauzer\Downloads\hashes.binfields.txt"))
            {
                propertyNames.Add(line.Split(' ')[1]);
            }
            foreach (string line in File.ReadAllLines(@"C:\Users\Crauzer\Downloads\hashes.bintypes.txt"))
            {
                classNames.Add(line.Split(' ')[1]);
            }

            dump.WriteMetaClasses(@"C:\Users\Crauzer\Downloads\meta_10.21.339.2173.cs", classNames, propertyNames);

            //var scdp = MetaSerializer.Deserialize<SkinCharacterDataProperties>(environment, binTree.Objects[0]);
        }