Esempio n. 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();
        }
Esempio n. 2
0
        public override void clear()
        {
            id    = -1;
            asset = null;

            packInfo      = null;
            packID        = -1;
            timeOut       = 0;
            refCount      = 0;
            beDependCount = 0;
        }