コード例 #1
0
        /** 读取bundle信息 */
        public static void readBundleInfo(BytesReadStream stream)
        {
            LoadControl.clearResourceInfo();

            int len = stream.readInt();

            for (int i = 0; i < len; i++)
            {
                BundleInfoData data = new BundleInfoData();
                data.readBytes(stream);

                LoadControl.registBundleInfo(data);
            }

            len = stream.readInt();
            for (int i = 0; i < len; i++)
            {
                ResourceInfoData data = new ResourceInfoData();
                data.readBytes(stream);

                LoadControl.registResource(data.name, data.id, data.type);
            }

            LoadControl.registBundleOver();
        }