Beispiel #1
0
        /// <summary>
        /// 単一データ作成
        /// </summary>
        private BundleBuildData CreateBuildData(IAccessLocation file, IBundleFileManifest buildFileData, IReadOnlyDictionary <string, string> table, AssetBundleManifest manifest)
        {
            var identifier   = buildFileData?.Identifier;
            var abName       = buildFileData?.ABName;
            var crc          = FsUtillity.TryGetCrc(file.FullPath);
            var hash         = manifest.TryGetHashString(abName);
            var dependencies = manifest.TryGetDependencies(abName).Select(c => table[c]).ToArray();
            var size         = FsUtillity.TryGetFileSize(file.FullPath);

            var d = new BundleBuildData
            {
                Path         = abName,
                Identifier   = identifier,
                Assets       = buildFileData?.Address,
                Hash         = hash,
                Crc          = crc,
                Dependencies = dependencies,
                FileSize     = size,
                Labels       = buildFileData?.Labels,
            };

            return(d);
        }