コード例 #1
0
 public ResLoadMgr(BinLoadMgr binLoadMgr, VerMgr verMgr)
 {
     this.binLoadMgr = binLoadMgr;
     this.verMgr     = verMgr;
     waitList        = new List <LoadItem>();
     okBackList      = new Dictionary <string, IList <LoadFinishBack> >();
     errorBackList   = new Dictionary <string, IList <LoadFinishBack> >();
 }
コード例 #2
0
ファイル: ResMgr.cs プロジェクト: 602147629/GDGJ_Script
        public ResMgr()
        {
            _verMgr        = new VerMgr();
            typeConfigList = new Dictionary <int, int>();
            loadingList    = new Dictionary <string, IList <LoadItem> >();
            progressList   = new Dictionary <string, IList <LoadProgressBack> >();

            //注册 每类资源的默认优先级
            regTypeConfig(ResType.XML, ResPriority.XML);
            regTypeConfig(ResType.TXT, ResPriority.XML);
            regTypeConfig(ResType.ZIP, ResPriority.XML);
            regTypeConfig(ResType.IMGAE, ResPriority.IMGAE);
            regTypeConfig(ResType.SOUND, ResPriority.SOUND);

            regTypeConfig(ResType.DATAVO, ResPriority.BINARY);
            regTypeConfig(ResType.BINARY, ResPriority.BINARY);
            regTypeConfig(ResType.ANIMATION, ResPriority.EFFECT);
        }