/// <summary> /// Loads bundle of files under bundle id. /// </summary> /// <param name="bundle">Data bundle.</param> /// <param name="influencedContexts">Contexts that got some new data in the process.</param> public void LoadBundle(MyBundle bundle, List <MyLocalizationContext> influencedContexts = null) { // this better should not happen if (m_loadedBundles.ContainsKey(bundle.BundleId)) { NotifyBundleConflict(bundle.BundleId); return; } foreach (var filePath in bundle.FilePaths) { var context = LoadLocalizationFile(filePath, bundle.BundleId, true); if (context != null && influencedContexts != null) { influencedContexts.Add(context); } } }
/// <summary> /// Loads bundle of files under bundle id. /// </summary> /// <param name="bundle">Data bundle.</param> /// <param name="influencedContexts">Contexts that got some new data in the process.</param> public void LoadBundle(MyBundle bundle, List<MyLocalizationContext> influencedContexts = null) { // this better should not happen if (m_loadedBundles.ContainsKey(bundle.BundleId)) { NotifyBundleConflict(bundle.BundleId); return; } foreach (var filePath in bundle.FilePaths) { var context = LoadLocalizationFile(filePath, bundle.BundleId, true); if(context != null && influencedContexts != null) { influencedContexts.Add(context); } } }