Beispiel #1
0
    public serverVersionFileManifestTest()
    {
        FileManifestManager.Add <IServerVersionFileManifest>(this);
        versionInfos = new Dictionary <string, VersionInfo>();

        System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();

        // OnlyABPack
        // CompressionPack
        string version1 = "1.1";
        string version2 = "1.2";
        string version3 = "2.3";
        string version4 = "3.4";
        string version5 = "4.5";
        string version6 = "4.6";
        string version7 = "5.7";
        string version8 = "6.8";

        versionInfos.Add(version1, BuildVersion(version1, PackageType.CompressionPack));
        versionInfos.Add(version2, BuildVersion(version2, PackageType.OnlyABPack));
        versionInfos.Add(version3, BuildVersion(version3, PackageType.CompressionPack));
        versionInfos.Add(version4, BuildVersion(version4, PackageType.OnlyABPack));
        versionInfos.Add(version5, BuildVersion(version5, PackageType.CompressionPack));
        versionInfos.Add(version6, BuildVersion(version6, PackageType.OnlyABPack));
        versionInfos.Add(version7, BuildVersion(version5, PackageType.CompressionPack));
        versionInfos.Add(version8, BuildVersion(version8, PackageType.CompressionPack));
    }
Beispiel #2
0
    public fenBaoFileManifestTest()
    {
        FileManifestManager.Add <IServerFenbaoFileManifest>(this);

        _data_infos = new Dictionary <string, List <AssetDataInfo> >();
        IServerVersionFileManifest versionFileManifest = FileManifestManager.Get <IServerVersionFileManifest>();

        List <string> zipVersions = versionFileManifest.GetZipAllVersion();

        int zipFileCount = 3;

        var itr          = zipVersions.GetEnumerator();
        int versionIndex = 1;

        while (itr.MoveNext())
        {
            _data_infos.Add(itr.Current, new List <AssetDataInfo>());

            for (int i = 0; i < zipFileCount; i++)
            {
                string name = string.Format(" Package{0}_{1}.zip", versionIndex, i);
                _data_infos[itr.Current].Add(BuildFenBao(name));
            }

            versionIndex++;
        }
        itr.Dispose();
    }
Beispiel #3
0
    public AssetBundleFileManifestTest()
    {
        FileManifestManager.Add <IServerAssetBundleFileManifest>(this);
        IServerVersionFileManifest versionFileManifest = FileManifestManager.Get <IServerVersionFileManifest>();

        _data_infos = new Dictionary <string, List <AssetDataInfo> >();
        List <string> abVersions = versionFileManifest.GetABVersion();
        var           itr        = abVersions.GetEnumerator();

        while (itr.MoveNext())
        {
            _data_infos.Add(itr.Current, new List <AssetDataInfo>());
            int count = 3;

            for (int i = 0; i < count; i++)
            {
                _data_infos[itr.Current].Add(BuildAssetData(itr.Current + "__" + i.ToString()));
            }
        }
        itr.Dispose();
    }
 public AssetBundleFileDownLoad()
 {
     FileManifestManager.Add <IServerAssetBundleFileManifest>(this);
     _server_version = FileManifestManager.Get <IServerVersionFileManifest>();
     _data_infos     = new Dictionary <string, List <AssetDataInfo> >();
 }
 public VersionFileDownLoad()
 {
     FileManifestManager.Add <IServerVersionFileManifest>(this);
     _server_version_list = FileManifestManager.Get <IServerVersionListFileManifest>();
     _version_infos       = new Dictionary <string, VersionInfo>();
 }
 public VersionListDownLoad()
 {
     FileManifestManager.Add <IServerVersionListFileManifest>(this);
 }
 public FenbaoFileDownLoad() : base()
 {
     FileManifestManager.Add <IServerFenbaoFileManifest>(this);
     _all_zip        = new Dictionary <string, List <AssetDataInfo> >();
     _server_version = FileManifestManager.Get <IServerVersionFileManifest>();
 }