Hook Prophecy data into the static data service.
This commit is contained in:
parent
011519fc35
commit
fb883cdd68
@ -462,6 +462,7 @@
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Resources\Prophecies.txt" />
|
||||
<EmbeddedResource Include="Resources\ItemMods.txt" />
|
||||
<Resource Include="Resources\loading_spinner.gif" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
|
35
Filtration/Properties/Resources.Designer.cs
generated
35
Filtration/Properties/Resources.Designer.cs
generated
@ -225,19 +225,21 @@ namespace Filtration.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to A Mother's Parting Gift
|
||||
/// Looks up a localized string similar to A Dab of Ink
|
||||
///A Mother's Parting Gift
|
||||
///Abandoned Wealth
|
||||
///Aberrant Fossil
|
||||
///Abyssal Axe
|
||||
///Abyssal Cry
|
||||
///Abyssal Sceptre
|
||||
///Academy Map
|
||||
///Acid Lakes Map
|
||||
///Acid Caverns Map
|
||||
///Added Chaos Damage Support
|
||||
///Added Cold Damage Support
|
||||
///Added Fire Damage Support
|
||||
///Added Lightning Damage Support
|
||||
///Additional Accuracy Support
|
||||
///Advanced Traps Support
|
||||
///Aetheric Fossil
|
||||
///Agate Amulet
|
||||
///Albino Rhoa Feather
|
||||
@ -251,10 +253,7 @@ namespace Filtration.Properties {
|
||||
///Amber Amulet
|
||||
///Ambush Boots
|
||||
///Ambush Leaguestone
|
||||
///Ambush Mitts
|
||||
///Ambusher
|
||||
///Amethyst Flask
|
||||
///Amethyst [rest of string was truncated]";.
|
||||
///Ambush [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string ItemBaseTypes {
|
||||
get {
|
||||
@ -266,7 +265,7 @@ namespace Filtration.Properties {
|
||||
/// Looks up a localized string similar to Abyss Jewel
|
||||
///Active Skill Gems
|
||||
///Amulets
|
||||
///Axe
|
||||
///Axes
|
||||
///Belts
|
||||
///Body Armours
|
||||
///Boots
|
||||
@ -288,12 +287,13 @@ namespace Filtration.Properties {
|
||||
///Labyrinth Map Item
|
||||
///Labyrinth Trinket
|
||||
///Large Relics
|
||||
///Leaguestone
|
||||
///Leaguestones
|
||||
///Life Flasks
|
||||
///Mace
|
||||
///Maces
|
||||
///Mana Flasks
|
||||
///Map Fragments
|
||||
///Maps
|
||||
///Medium Relics
|
||||
///Misc Map Items
|
||||
///One Hand Axes
|
||||
///One Hand Maces
|
||||
@ -302,14 +302,12 @@ namespace Filtration.Properties {
|
||||
///Piece
|
||||
///Quest Items
|
||||
///Quivers
|
||||
///Relics
|
||||
///Rings
|
||||
///Sceptres
|
||||
///Shields
|
||||
///Stackable Currency
|
||||
///Staves
|
||||
///Support Skill Gems
|
||||
///Sword
|
||||
///T [rest of string was truncated]";.
|
||||
///Small Relics
|
||||
///Stackable Curre [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string ItemClasses {
|
||||
get {
|
||||
@ -382,6 +380,15 @@ namespace Filtration.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to A Gracious Master.
|
||||
/// </summary>
|
||||
internal static string Prophecies {
|
||||
get {
|
||||
return ResourceManager.GetString("Prophecies", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream.
|
||||
/// </summary>
|
||||
|
@ -211,4 +211,7 @@
|
||||
<data name="ItemMods" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ItemMods.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
<data name="Prophecies" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Prophecies.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
</root>
|
1
Filtration/Resources/Prophecies.txt
Normal file
1
Filtration/Resources/Prophecies.txt
Normal file
@ -0,0 +1 @@
|
||||
A Gracious Master
|
@ -11,6 +11,7 @@ namespace Filtration.Services
|
||||
IEnumerable<string> ItemBaseTypes { get; }
|
||||
IEnumerable<string> ItemClasses { get; }
|
||||
IEnumerable<string> ItemMods { get; }
|
||||
IEnumerable<string> Prophecies { get; }
|
||||
}
|
||||
|
||||
internal class StaticDataService : IStaticDataService
|
||||
@ -26,11 +27,14 @@ namespace Filtration.Services
|
||||
|
||||
public IEnumerable<string> ItemMods { get; private set; }
|
||||
|
||||
public IEnumerable<string> Prophecies { get; private set; }
|
||||
|
||||
private void PopulateStaticData()
|
||||
{
|
||||
ItemBaseTypes = new LineReader(() => new StringReader(Resources.ItemBaseTypes)).ToList();
|
||||
ItemClasses = new LineReader(() => new StringReader(Resources.ItemClasses)).ToList();
|
||||
ItemMods = new LineReader(() => new StringReader(Resources.ItemMods)).ToList();
|
||||
Prophecies = new LineReader(() => new StringReader(Resources.Prophecies)).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ namespace Filtration.ViewModels
|
||||
|
||||
public IEnumerable<string> AutoCompleteItemBaseTypes => _staticDataService.ItemBaseTypes;
|
||||
|
||||
public IEnumerable<string> AutoCompleteProphecies => new List<string>();
|
||||
public IEnumerable<string> AutoCompleteProphecies => _staticDataService.Prophecies;
|
||||
|
||||
public IEnumerable<string> AutocompleteItemMods => _staticDataService.ItemMods;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user