예제 #1
0
        static void GenFairyGUIApi()
        {
            Start();
            List <Info> infos = new List <Info>();

            string[] fs = Directory.GetFiles(fairyGUIDir, "*.bytes");
            for (int i = 0; i < fs.Length; i++)
            {
                string path  = EUtil.FilePath2UnityPath(fs[i]);
                int    index = path.LastIndexOf('_');
                string f     = EUtil.StandardlizePath(path).Substring(0, index);
                infos.AddRange(CreateInfo(f));
            }
            var ls = ExportFGUIConfig.LuaCallFGUI;

            for (int i = 0; i < ls.Count; i++)
            {
                Info info = CollectedTypeInfo(ls[i]);
                infos.Add(info);
            }
            GenLuaApi("FairyGUIApi", infos);
            Stop();
        }