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