public DestinyDefinitionAttribute(DefinitionsEnum type, DefinitionSources sources, DefinitionKeyType keyType, bool isManuallyDisabled = false)
 {
     DefinitionEnumType = type;
     Sources            = sources;
     KeyType            = keyType;
     IsManuallyDisabled = isManuallyDisabled;
 }
Esempio n. 2
0
 /// <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;
 }