public bool Initialize(object argv) { var data = argv as AssetLoaderData; frameHandle = data.frameHandle; mLocalResourcesInfoTable.Clear(); if (null != data.localResourcesInfoTable) { var iter = data.localResourcesInfoTable.GetEnumerator(); while (iter.MoveNext()) { var resItem = iter.Current.Value as ResourceInfoTable; if (null != resItem) { int iHashCode = 0; if (!string.IsNullOrEmpty(resItem.PathHashKey)) { iHashCode = resItem.PathHashKey.GetHashCode(); } if (0 != iHashCode) { if (!mLocalResourcesInfoTable.ContainsKey(iHashCode)) { mLocalResourcesInfoTable.Add(iHashCode, resItem); } else { var orgItem = mLocalResourcesInfoTable[iHashCode]; mLocalResourcesInfoTable[iHashCode] = resItem; LoggerManager.Instance().LogErrorFormat("mLocalResourcesInfoTable hash key repeated for id = {0} and id = {1}", orgItem.ID, resItem.ID); } } } } } return(mLocalResourcesInfoTable.Count > 0); }
public void Initialize(object argv) { FrameHandle = argv as GameFrameWork; }
public void Initialize(object argv, string baseUrl) { gameHandle = argv as GameFrameWork; this.baseUrl = baseUrl; }