Ejemplo n.º 1
0
 public override void run()
 {
     extrator         = new AssetExtrator();
     typeTreeDatabase = AssetToolUtility.LoadTypeTreeDataBase(Resources.TypeTreeDataBasePath);
     base.run();
     AssetToolUtility.SaveTypeTreeDataBase(Resources.TypeTreeDataBasePath, typeTreeDatabase);
 }
Ejemplo n.º 2
0
        public override void run()
        {
            TypeTreeDataBase typeTreeDatabase = AssetToolUtility.LoadTypeTreeDataBase(Resources.TypeTreeDataBasePath);
            var allVertions = typeTreeDatabase.GetAllVersion();

            if (version != -1)
            {
                if (classID != -1)
                {
                    if (typeTreeDatabase.Contains(version, classID))
                    {
                        var typeTree = typeTreeDatabase.GetType(version, classID);
                        Console.WriteLine("Version:{0},ClassID:{1},Type:{2}:\n{3}", version, classID, typeTree.type, typeTree);
                    }
                    else
                    {
                        Console.WriteLine("No Found TypeTree.");
                    }
                }
                else
                {
                    var allTypes = typeTreeDatabase.GetAllType(version);
                    Console.WriteLine("Version:{0} has {1}  typetree {2}", version, allVertions.Length, classID);
                    foreach (var kvr in allTypes)
                    {
                        Console.WriteLine("Version:{0},ClassID:{1},Type:{2}:\n{3}", version, kvr.Key, kvr.Value.type, kvr.Value);
                    }
                }
            }
            else
            {
                if (classID != -1)
                {
                    foreach (var version in allVertions)
                    {
                        if (typeTreeDatabase.Contains(version, classID))
                        {
                            var typeTree = typeTreeDatabase.GetType(version, classID);
                            Console.WriteLine("Version:{0},ClassID:{1},Type:{2}:\n{3}", version, classID, typeTree.type, typeTree);
                        }
                    }
                }
                else
                {
                    foreach (var version in allVertions)
                    {
                        var allTypes = typeTreeDatabase.GetAllType(version);
                        Console.WriteLine("Version:{0} has {1}  typetree", version, allVertions.Length);
                        foreach (var kvr in allTypes)
                        {
                            Console.WriteLine("Version:{0},ClassID:{1},Type:{2}:\n{3}", version, kvr.Key, kvr.Value.type, kvr.Value);
                        }
                    }
                }
            }
        }
Ejemplo n.º 3
0
        public override void run()
        {
            mSizeDic.Clear();
            typeTreeDatabase = AssetToolUtility.LoadTypeTreeDataBase(Resources.TypeTreeDataBasePath);
            base.run();
            AssetToolUtility.SaveTypeTreeDataBase(Resources.TypeTreeDataBasePath, typeTreeDatabase);
            Console.WriteLine("TotalSize:{0} kb", totalSize / 1024.0f);
            var sortedDic = mSizeDic.OrderByDescending(x => x.Value).ToDictionary(x => x.Key, x => x.Value);

            foreach (var kvp in sortedDic)
            {
                string className = AssetToolUtility.ClassIDToClassName(kvp.Key);
                Console.WriteLine("{0,-30} Size:{1,-15}kb {2,-15}%", className, kvp.Value / 1024.0f, (kvp.Value / (float)totalSize) * 100);
            }
        }
Ejemplo n.º 4
0
 public override void run()
 {
     extrator = new AssetExtrator();
     db       = AssetToolUtility.LoadTypeTreeDataBase(Properties.Resources.TypeTreeDataBasePath);
     base.run();
 }