public DestinyDefinitionAttribute(DefinitionsEnum type, DefinitionSources sources, DefinitionKeyType keyType, bool isManuallyDisabled = false) { DefinitionEnumType = type; Sources = sources; KeyType = keyType; IsManuallyDisabled = isManuallyDisabled; }
/// <summary> /// Defines how app will hanlde definitions. /// </summary> /// <param name="saveToAppMemory"></param> /// <param name="tryDownloadMissingDefinitions"></param> /// <param name="preferredSource"></param> /// <param name="localesToLoad"></param> public void SetDefinitionsLoadingBehaviour(bool saveToAppMemory, bool tryDownloadMissingDefinitions, DefinitionSources preferredSource, bool retryDownloading, params DestinyLocales[] localesToLoad) { CacheDefinitionsInMemory = saveToAppMemory; TryDownloadMissingDefinitions = tryDownloadMissingDefinitions; Locales = localesToLoad; PreferredLoadSource = preferredSource; ShouldRetryDownloading = retryDownloading; }