/** 读取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(); }
/** 创建(editor用) */ public static ResourceInfoData create(string name, int type) { ResourceInfoData infoData = new ResourceInfoData(); infoData.name = name; infoData.type = type; return(infoData); }