Exemplo n.º 1
0
        public static void ReadNormal(List<string> listDatas)
        {
            int i = 0;

            //  每一行 
            foreach (string s in listDatas)
            {
                EntryPoint("Normal_" + (i++).ToString());

                Debug.Log("----------Begin ----------" + s);

                Dictionary<string, string> dic = ReadLine(s);

                BatArg arg = new BatArg(dic);

                ABPackage package = new ABPackage(arg);

                if (!package.IsValid())
                {
                    Debug.LogError("package.IsValid");
                }
                else
                {
                    package.Package();
                }
                Debug.Log("----------End----------");

            }

        }
        public static void ReadNormal(List <string> listDatas)
        {
            int i = 0;

            //  每一行
            foreach (string s in listDatas)
            {
                EntryPoint("Normal_" + (i++).ToString());

                Debug.Log("----------Begin ----------" + s);

                Dictionary <string, string> dic = ReadLine(s);

                BatArg arg = new BatArg(dic);

                ABPackage package = new ABPackage(arg);

                if (!package.IsValid())
                {
                    Debug.LogError("package.IsValid");
                }
                else
                {
                    package.Package();
                }
                Debug.Log("----------End----------");
            }
        }
Exemplo n.º 3
0
        public static void EntryNormalTest()
        {
            string param = @"-CustomArgs:
                            Model=0,    
                            DestHierarchy=0,    
                            PC=1,
                            IOS=1,
                            AND=1, 
                            SrcFolder=ModelsNGUI/Resources/NGUIPrefabs,
                            SearchLoop=1,
                            SearchPrefix=.prefab,
                            DestFolder=E:/Heros/GameEditors/StreamingAssetsBat";

            mBatArg.Model = BatModel.Normal;
            mBatArg.Hierarchy = DestHierarchy.Root;
            mBatArg.PC = true;
            mBatArg.IOS = true;
            mBatArg.AND = true;
            mBatArg.SrcFolder = "Assets/ModelsNGUI/Resources/NGUIPrefabs/";
            mBatArg.SearchLoop = true;
            mBatArg.SearchPrefix = ".prefab";
            mBatArg.DestFolderPath = "E:/Heros/GameEditors/StreamingAssetsBat/";
            mBatArg.DestFolderName = "ngui";

            ABPackage package = new ABPackage(mBatArg);
        }
        public static void EntryNormalTest()
        {
            string param = @"-CustomArgs:
                            Model=0,    
                            DestHierarchy=0,    
                            PC=1,
                            IOS=1,
                            AND=1, 
                            SrcFolder=ModelsNGUI/Resources/NGUIPrefabs,
                            SearchLoop=1,
                            SearchPrefix=.prefab,
                            DestFolder=E:/Heros/GameEditors/StreamingAssetsBat";

            mBatArg.Model          = BatModel.Normal;
            mBatArg.Hierarchy      = DestHierarchy.Root;
            mBatArg.PC             = true;
            mBatArg.IOS            = true;
            mBatArg.AND            = true;
            mBatArg.SrcFolder      = "Assets/ModelsNGUI/Resources/NGUIPrefabs/";
            mBatArg.SearchLoop     = true;
            mBatArg.SearchPrefix   = ".prefab";
            mBatArg.DestFolderPath = "E:/Heros/GameEditors/StreamingAssetsBat/";
            mBatArg.DestFolderName = "ngui";

            ABPackage package = new ABPackage(mBatArg);
        }