From c0c4e251a0f40a736d9947b2379d5271821398d1 Mon Sep 17 00:00:00 2001 From: Jonathan McCaffrey Date: Mon, 18 Apr 2022 18:28:56 -0400 Subject: [PATCH] feat(Variables) Added variable service and new game patch --- Contexts/DatabaseContext.cs | 2 + IGP/App.razor | 16 +++++++- IGP/Database.db | Bin 278528 -> 278528 bytes IGP/Pages/Database/DatabasePage.razor | 5 ++- IGP/Pages/Database/DatabaseSinglePage.razor | 3 +- IGP/Program.cs | 2 + IGP/wwwroot/generated/GitChangeModels.json | 2 +- IGP/wwwroot/generated/GitPatchModels.json | 2 +- IGP/wwwroot/generated/Variables.json | 1 + IGP_Convert/Program.cs | 2 + Model/Entity/Data/DATA.cs | 2 +- Model/Entity/EntityModel.cs | 2 - Model/Variable.cs | 10 +++++ Services/IServices.cs | 7 ++++ Services/Website/VariableService.cs | 40 ++++++++++++++++++++ 15 files changed, 86 insertions(+), 10 deletions(-) create mode 100644 IGP/wwwroot/generated/Variables.json create mode 100644 Model/Variable.cs create mode 100644 Services/Website/VariableService.cs diff --git a/Contexts/DatabaseContext.cs b/Contexts/DatabaseContext.cs index afa563d..c60182c 100644 --- a/Contexts/DatabaseContext.cs +++ b/Contexts/DatabaseContext.cs @@ -2,6 +2,7 @@ #else using Microsoft.EntityFrameworkCore; +using Model; using Model.Doc; using Model.Git; using Model.Notes; @@ -29,6 +30,7 @@ public class DatabaseContext : DbContext public DbSet NoteContentModels { get; set; } = default!; public DbSet NoteConnectionModels { get; set; } = default!; public DbSet NoteSectionModels { get; set; } = default!; + public DbSet Variables { get; set; } = default!; } #endif \ No newline at end of file diff --git a/IGP/App.razor b/IGP/App.razor index cd7144a..59f834a 100644 --- a/IGP/App.razor +++ b/IGP/App.razor @@ -1,9 +1,13 @@ @inject HttpClient httpClient +@inject IVariableService variableService - - + @if (isLoaded) + { + + + } Not found @@ -68,5 +72,13 @@ @code { + private bool isLoaded = false; + + protected override async Task OnInitializedAsync() + { + await variableService.Load(); + isLoaded = true; + StateHasChanged(); + } } \ No newline at end of file diff --git a/IGP/Database.db b/IGP/Database.db index 58d71ce79dcbd1b4b8aa9cc4fd4d3e8fa96ce270..8260670ab108316f6e62394b8156be3bfb19b6b2 100644 GIT binary patch delta 985 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 LW%g3Y5OVz&(*mw3 diff --git a/IGP/Pages/Database/DatabasePage.razor b/IGP/Pages/Database/DatabasePage.razor index 8b8347b..826fb23 100644 --- a/IGP/Pages/Database/DatabasePage.razor +++ b/IGP/Pages/Database/DatabasePage.razor @@ -5,6 +5,7 @@ @implements IDisposable @inject IEntityDisplayService entityDisplayService +@inject IVariableService variableService Database @@ -12,7 +13,7 @@ - Game Patch: @EntityModel.GameVersion + Game Patch: @variableService.Variables["GamePatch"] @@ -66,7 +67,7 @@ Is this database updated to the latest version? - Maybe. Check this @EntityModel.GameVersion version number, and compare it to the number on discord, in the #game-updates channel. That should give a general sense of how out of date the data is. + Maybe. Check this @variableService.Variables["GamePatch"] version number, and compare it to the number on discord, in the #game-updates channel. That should give a general sense of how out of date the data is. diff --git a/IGP/Pages/Database/DatabaseSinglePage.razor b/IGP/Pages/Database/DatabaseSinglePage.razor index 56ede3d..030916a 100644 --- a/IGP/Pages/Database/DatabaseSinglePage.razor +++ b/IGP/Pages/Database/DatabaseSinglePage.razor @@ -4,6 +4,7 @@ @inject IEntityDisplayService entityDisplayService +@inject IVariableService variableService @implements IDisposable @@ -11,7 +12,7 @@ - Game Patch: @EntityModel.GameVersion + Game Patch: @variableService.Variables["GamePatch"] diff --git a/IGP/Program.cs b/IGP/Program.cs index 7cffd63..2ca70da 100644 --- a/IGP/Program.cs +++ b/IGP/Program.cs @@ -2,6 +2,7 @@ using System.Globalization; using IGP; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Services; +using Model; using Services; using Services.Development; using Services.Immortal; @@ -39,6 +40,7 @@ builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); +builder.Services.AddSingleton(); builder.Services.AddSingleton(); diff --git a/IGP/wwwroot/generated/GitChangeModels.json b/IGP/wwwroot/generated/GitChangeModels.json index 323a919..5f81f44 100644 --- a/IGP/wwwroot/generated/GitChangeModels.json +++ b/IGP/wwwroot/generated/GitChangeModels.json @@ -1 +1 @@ -[{"Id":1,"GitPatchModelId":1,"Name":"Shrink Header Navigation","Description":"The full header navigation is now only visible on desktop when hovered.","Commit":"Feature","Important":"False"},{"Id":2,"GitPatchModelId":1,"Name":"Database UX Update","Description":"Desktop Database Filter UI has been updated. It\u0027s now always visible.","Commit":"Feature","Important":"False"},{"Id":3,"GitPatchModelId":2,"Name":"Fixing Thrum Stats","Description":"Speed was too low. Health and Shields ratio is slightly different.","Commit":"Fix","Important":"False"},{"Id":4,"GitPatchModelId":3,"Name":"Memory Tester","Description":"Fun quick feature added while I rewrite my database. Tests memory of units ranges and speeds.","Commit":"Feature","Important":"False"},{"Id":5,"GitPatchModelId":3,"Name":"Privacy Policy Removed","Description":"Removed cringe privacy policy. It misses the issue. Will eventually add operational analytics and cookies, and add a more applicable Privacy Policy if needed. Not a priority though.","Commit":"Fix","Important":"False"},{"Id":6,"GitPatchModelId":3,"Name":"Input Tripling","Description":"Fixed a bug where inputs could get tripled on the Build Calculator.","Commit":"Fix","Important":"False"},{"Id":7,"GitPatchModelId":3,"Name":"Agile Changes","Description":"Updated Agile log to indicate the next 2 weeks will be spent on SQL","Commit":"Planning","Important":"False"},{"Id":8,"GitPatchModelId":4,"Name":"Hiding WIP Pyre Feature","Description":"Whoops, WIP Pyre feature accidentally got committed to production. Now hidden.","Commit":"Fix","Important":"False"},{"Id":9,"GitPatchModelId":5,"Name":"Build Calc Optimization","Description":"Improved speeds","Commit":"Fix","Important":"False"},{"Id":10,"GitPatchModelId":5,"Name":"Change Log Filter","Description":"Change log now defaults to showing only important patches","Commit":"Feature","Important":"False"},{"Id":11,"GitPatchModelId":5,"Name":"Motes Consumed","Description":"Motes now consumed in the build calculator when making a townhall.","Commit":"Fix","Important":"False"},{"Id":12,"GitPatchModelId":6,"Name":"Agile UI Tweaks","Description":"Making the agile text look a bit better before stream.","Commit":"Style","Important":"False"},{"Id":13,"GitPatchModelId":7,"Name":"Database Armor","Description":"Added missing armor display to database.","Commit":"Fix","Important":"False"},{"Id":14,"GitPatchModelId":8,"Name":"Home Page","Description":"Added a quick placeholder-ish homepage.","Commit":"Feature","Important":"False"},{"Id":15,"GitPatchModelId":8,"Name":"Database Army Default","Description":"Database UI now defaults to Army selection. Given most people are probably going to want to view the units.","Commit":"Fix","Important":"False"},{"Id":16,"GitPatchModelId":9,"Name":"Mobile Menu Back","Description":"You can now click the page after selecting a Section, to go back to Section nav.","Commit":"Fix","Important":"False"},{"Id":17,"GitPatchModelId":10,"Name":"Mobile Menu Fixed","Description":"Fixed the mobile menu not actually being positioned to the bottom of the screen on phones.","Commit":"Fix","Important":"False"},{"Id":18,"GitPatchModelId":11,"Name":"Tablet Menu","Description":"Added a hamburger nav menu for tablets.","Commit":"Feature","Important":"False"},{"Id":19,"GitPatchModelId":11,"Name":"Mobile Menu","Description":"Added a bottom nav menu for phones.","Commit":"Feature","Important":"False"},{"Id":20,"GitPatchModelId":12,"Name":"0.0.6.8375a","Description":"Database updated to 0.0.6.8375a","Commit":"Game Patch","Important":"True"},{"Id":21,"GitPatchModelId":12,"Name":"Database Descriptions","Description":"Added more text descriptions to buildings and etc..","Commit":"Feature","Important":"False"},{"Id":22,"GitPatchModelId":12,"Name":"Guids","Description":"Now using Guids and strings over enums. View in /raw-database page.","Commit":"Feature","Important":"False"},{"Id":23,"GitPatchModelId":12,"Name":"Mobile UI","Description":"Additional mobile UI improvements. Harass calculator now has fewer inputs that don\u0027t matter.","Commit":"Feature","Important":"False"},{"Id":24,"GitPatchModelId":12,"Name":"Bug Tasks","Description":"Added feature/bug task indicator to agile view. Added consume mote bug in build calculator to next sprint. (Calculator not consuming motes on Town Hall building)","Commit":"Feature","Important":"False"},{"Id":25,"GitPatchModelId":12,"Name":"Entity Display UI","Description":"Display UI improved. Build Calculator now uses the same Entity display UI as the Database.","Commit":"Style","Important":"False"},{"Id":26,"GitPatchModelId":13,"Name":"Removed Embedded YouTube","Description":"Having embedded videos makes my privacy policy look completely untrue. Removed the video (it\u0027s now a link) and added a message on the privacy policy to point out that the error occured.","Commit":"Fix","Important":"False"},{"Id":27,"GitPatchModelId":13,"Name":"Agile View Backlog","Description":"Added backlog rendering to the Agile View Page. Added priority level to better indicate what tasks have high or zero priority.","Commit":"Feature","Important":"False"},{"Id":28,"GitPatchModelId":14,"Name":"Privacy Policy Page","Description":"The privacy policy is now a page rather than a blurb on the About page.","Commit":"Feature","Important":"False"},{"Id":29,"GitPatchModelId":14,"Name":"Privacy Policy Update","Description":"I added information on how I use personal data. And a disclaimer that privacy can never be guaranteed.","Commit":"Privacy Policy","Important":"False"},{"Id":30,"GitPatchModelId":14,"Name":"Minor Tweaks","Description":"Minor UI changes and text fixes.","Commit":"None","Important":"False"},{"Id":31,"GitPatchModelId":15,"Name":"Homepage","Description":"Making Of page no longer shows on the homepage","Commit":"Fix","Important":"False"},{"Id":32,"GitPatchModelId":15,"Name":"DevOnly Component","Description":"Added a DevOnly component to wrap UI content that should not be released to production. I.e. the Homepage bug.","Commit":"Feature","Important":"False"},{"Id":33,"GitPatchModelId":16,"Name":"Agile View","Description":"Add an agile page to show current activities.","Commit":"Feature","Important":"False"},{"Id":34,"GitPatchModelId":16,"Name":"Rendering Entire Database","Description":"I can now render the database without lag. Not sure what fixed it.","Commit":"Fix","Important":"False"},{"Id":35,"GitPatchModelId":16,"Name":"Database Data","Description":"Added a ton of data to the database. Such as various descriptions. More work is still to be done.","Commit":"Feature","Important":"False"},{"Id":36,"GitPatchModelId":16,"Name":"Database Ids","Description":"Database has less duplicated content. Army entities now link to their Upgrades and Abilities. More work is still to be done.","Commit":"Feature","Important":"False"},{"Id":37,"GitPatchModelId":16,"Name":"Blades of the Godhead Requirement","Description":"Fixed the requirement incorrectly being the Eye of Aros. Now is properly Bearer of the Crown.","Commit":"Fix","Important":"False"},{"Id":38,"GitPatchModelId":16,"Name":"UI Changes","Description":"Various UI changes and tweaks","Commit":"Style","Important":"False"},{"Id":39,"GitPatchModelId":16,"Name":"Streams","Description":"Added a Streams page. It mentions plans to do Twitch streams on Sunday.","Commit":"Feature","Important":"False"},{"Id":40,"GitPatchModelId":16,"Name":"IMMORTAL","Description":"Fixed \u0022IMMORTAL: Gates of Pyre\u0022 game title. Will no longer refer to it as \u0022Immortal: Gates of Pyre\u0022.","Commit":"Typo","Important":"False"},{"Id":41,"GitPatchModelId":16,"Name":"Mobile Support","Description":"All the pages should now work on phones.","Commit":"Feature","Important":"False"},{"Id":42,"GitPatchModelId":17,"Name":"Form Text","Description":"Fixed search bar in database, name and colour in build calculator, from not rendering \uD83D\uDE10","Commit":"Fix","Important":"False"},{"Id":43,"GitPatchModelId":17,"Name":"UI Test Automation Road Map","Description":"Adding test automation to the roadmap","Commit":"Planning","Important":"False"},{"Id":44,"GitPatchModelId":18,"Name":"Build Calculator Interval","Description":"600 is too laggy. Reducing to 360 until optimizations are done.","Commit":"Fix","Important":"False"},{"Id":45,"GitPatchModelId":18,"Name":"Changelog Patch Date","Description":"Fixed date on previous patch in changelog. Should be one day earlier.","Commit":"Fix","Important":"False"},{"Id":46,"GitPatchModelId":19,"Name":"UI Overhaul","Description":"Cleaned up and restyled a lot of UI. Like Page Containers, Alerts, Forms, Nav Buttons, and more.","Commit":"Style","Important":"False"},{"Id":47,"GitPatchModelId":19,"Name":"Separate Pages","Description":"Navigation now uses different pages, instead of loading content onto the main page.","Commit":"Feature","Important":"False"},{"Id":48,"GitPatchModelId":19,"Name":"Making Of","Description":"Adding Making Of page for design reference.","Commit":"Feature","Important":"False"},{"Id":49,"GitPatchModelId":19,"Name":"Change Log","Description":"Adding Change Log page for viewing update history.","Commit":"Feature","Important":"False"},{"Id":50,"GitPatchModelId":19,"Name":"Mobile Priority","Description":"Changed mobile support priority in roadmap from low and possible to high and planned, and updated description.","Commit":"Planning","Important":"False"},{"Id":51,"GitPatchModelId":20,"Name":"Purple Colours","Description":"Added placeholder-ish purple color scheme.","Commit":"Style","Important":"False"},{"Id":52,"GitPatchModelId":20,"Name":"SQL","Description":"Agile and Change Log pages now use JSON made from SQL","Commit":"Feature","Important":"False"},{"Id":53,"GitPatchModelId":21,"Name":"Discord Link","Description":"Made a discord for the website, and added invite link to contact page","Commit":"Feature","Important":"False"},{"Id":54,"GitPatchModelId":21,"Name":"Loading Improvemnts","Description":"Agile and Change Log loading improved","Commit":"Feature","Important":"False"},{"Id":55,"GitPatchModelId":21,"Name":"Desktop Nav closing","Description":"Desktop nav menu now closes when a page link is clicked","Commit":"Feature","Important":"False"},{"Id":56,"GitPatchModelId":22,"Name":"0.0.6.8900a","Description":"Database updated to 0.0.6.8900a","Commit":"Game Patch","Important":"True"},{"Id":57,"GitPatchModelId":23,"Name":"Database Links","Description":"Various entity references in the database now link to the entity via a dialog interface","Commit":"Feature","Important":"False"},{"Id":58,"GitPatchModelId":24,"Name":"Documentation Page","Description":"Added a docs page with some starter setup information","Commit":"Feature","Important":"False"},{"Id":59,"GitPatchModelId":24,"Name":"Database Filters","Description":"Fixed filter defaults. Removed unimportant filter types","Commit":"Fix","Important":"False"},{"Id":60,"GitPatchModelId":25,"Name":"Database Fixes","Description":"Various fixes to bad data. Added some missing entities","Commit":"Fix","Important":"False"},{"Id":61,"GitPatchModelId":25,"Name":"Plain View","Description":"Database can now change to plain view for easy copy and pasting","Commit":"Feature","Important":"False"},{"Id":62,"GitPatchModelId":25,"Name":"Direct Links","Description":"Database now supports direct links. database/Throne to see just Throne","Commit":"Feature","Important":"False"},{"Id":63,"GitPatchModelId":26,"Name":"Better Navigation","Description":"Documentational pages now use a more logical navigation format, with sections, and parent-child documents","Commit":"Feature","Important":"False"},{"Id":64,"GitPatchModelId":26,"Name":"Style Improvements","Description":"Improved home page styling on website highlighted content","Commit":"Style","Important":"False"},{"Id":65,"GitPatchModelId":26,"Name":"Warning Cleanup","Description":"Removed a bunch of development code warnings","Commit":"Chore","Important":"False"},{"Id":66,"GitPatchModelId":27,"Name":"Toasts","Description":"Added some error toasts to build calculator. Needs work","Commit":"Feature","Important":"False"},{"Id":67,"GitPatchModelId":27,"Name":"Localization Text","Description":"Added localization logic for handling some text. Currently only supporting English","Commit":"Feature","Important":"False"},{"Id":68,"GitPatchModelId":27,"Name":"GitHub Button","Description":"Harass Calculator now links to code in repo, instead of showing it as text","Commit":"Feature","Important":"False"},{"Id":69,"GitPatchModelId":28,"Name":"Markdown","Description":"Docs and Notes are now easily editable markdown files. Navigation will still be handled via SQL formatted data.","Commit":"Feature","Important":"False"},{"Id":70,"GitPatchModelId":28,"Name":"Passive Data","Description":"Added new passive data from Twitter post.","Commit":"Feature","Important":"True"},{"Id":71,"GitPatchModelId":28,"Name":"Toast Fade","Description":"Fixed toasts not fading out over time.","Commit":"Fix","Important":"False"},{"Id":72,"GitPatchModelId":28,"Name":"Click Desktop Menu","Description":"Added better menu navigation for desktop users.","Commit":"Feature","Important":"False"},{"Id":73,"GitPatchModelId":29,"Name":"Added document on Hotkeys","Description":"Document on how to customize hotkeys","Commit":"Feature","Important":"False"},{"Id":74,"GitPatchModelId":29,"Name":"0.0.6.9121a","Description":"Current game patch","Commit":"Feature","Important":"True"},{"Id":75,"GitPatchModelId":30,"Name":"Build Calculator Optimizations","Description":"Now faster","Commit":"Feature","Important":"False"},{"Id":76,"GitPatchModelId":31,"Name":"Cancel Not Reverting","Description":"Cancel button removes unlocked tech again","Commit":"Fix","Important":"False"},{"Id":77,"GitPatchModelId":31,"Name":"GroveHeart Upgrade","Description":"Can upgrade Grove Heart again","Commit":"Fix","Important":"False"},{"Id":78,"GitPatchModelId":31,"Name":"Locked Text","Description":"Hotkey Text is now always visible. Text is gray when key is locked behind tech","Commit":"Style","Important":"False"},{"Id":79,"GitPatchModelId":31,"Name":"Immortal Filters","Description":"This works again. Switching between Ajari and Orzum will changes unit choices","Commit":"Fix","Important":"False"},{"Id":80,"GitPatchModelId":31,"Name":"Added Missing Data","Description":"Added missing data for filtering and unlocking entities","Commit":"Fix","Important":"False"},{"Id":81,"GitPatchModelId":32,"Name":"Offline mode","Description":"You can now use the website offline","Commit":"Feature","Important":"False"},{"Id":82,"GitPatchModelId":32,"Name":"Search Bar","Description":"Desktop users now have a search bar. Very WIP, needs some QOL","Commit":"Feature","Important":"False"},{"Id":83,"GitPatchModelId":32,"Name":"Style Changes","Description":"Changes to styles to RoadMap and Desktop Navigation","Commit":"Style","Important":"False"},{"Id":84,"GitPatchModelId":32,"Name":"Build Calculator Improvements","Description":"Additional tweaks to build calculator UI and features","Commit":"Feature","Important":"False"},{"Id":85,"GitPatchModelId":32,"Name":"Stub Pages","Description":"Added blank stub pages","Commit":"Feature","Important":"False"},{"Id":86,"GitPatchModelId":33,"Name":"Search Hotkey","Description":"Making the search hotkey work.","Commit":"Feature","Important":"False"},{"Id":87,"GitPatchModelId":34,"Name":"Economy Comparison","Description":"Compare two economies together. WIP and contains bugs","Commit":"Feature","Important":"False"}] \ No newline at end of file +[{"Id":1,"GitPatchModelId":1,"Name":"Shrink Header Navigation","Description":"The full header navigation is now only visible on desktop when hovered.","Commit":"Feature","Important":"False"},{"Id":2,"GitPatchModelId":1,"Name":"Database UX Update","Description":"Desktop Database Filter UI has been updated. It\u0027s now always visible.","Commit":"Feature","Important":"False"},{"Id":3,"GitPatchModelId":2,"Name":"Fixing Thrum Stats","Description":"Speed was too low. Health and Shields ratio is slightly different.","Commit":"Fix","Important":"False"},{"Id":4,"GitPatchModelId":3,"Name":"Memory Tester","Description":"Fun quick feature added while I rewrite my database. Tests memory of units ranges and speeds.","Commit":"Feature","Important":"False"},{"Id":5,"GitPatchModelId":3,"Name":"Privacy Policy Removed","Description":"Removed cringe privacy policy. It misses the issue. Will eventually add operational analytics and cookies, and add a more applicable Privacy Policy if needed. Not a priority though.","Commit":"Fix","Important":"False"},{"Id":6,"GitPatchModelId":3,"Name":"Input Tripling","Description":"Fixed a bug where inputs could get tripled on the Build Calculator.","Commit":"Fix","Important":"False"},{"Id":7,"GitPatchModelId":3,"Name":"Agile Changes","Description":"Updated Agile log to indicate the next 2 weeks will be spent on SQL","Commit":"Planning","Important":"False"},{"Id":8,"GitPatchModelId":4,"Name":"Hiding WIP Pyre Feature","Description":"Whoops, WIP Pyre feature accidentally got committed to production. Now hidden.","Commit":"Fix","Important":"False"},{"Id":9,"GitPatchModelId":5,"Name":"Build Calc Optimization","Description":"Improved speeds","Commit":"Fix","Important":"False"},{"Id":10,"GitPatchModelId":5,"Name":"Change Log Filter","Description":"Change log now defaults to showing only important patches","Commit":"Feature","Important":"False"},{"Id":11,"GitPatchModelId":5,"Name":"Motes Consumed","Description":"Motes now consumed in the build calculator when making a townhall.","Commit":"Fix","Important":"False"},{"Id":12,"GitPatchModelId":6,"Name":"Agile UI Tweaks","Description":"Making the agile text look a bit better before stream.","Commit":"Style","Important":"False"},{"Id":13,"GitPatchModelId":7,"Name":"Database Armor","Description":"Added missing armor display to database.","Commit":"Fix","Important":"False"},{"Id":14,"GitPatchModelId":8,"Name":"Home Page","Description":"Added a quick placeholder-ish homepage.","Commit":"Feature","Important":"False"},{"Id":15,"GitPatchModelId":8,"Name":"Database Army Default","Description":"Database UI now defaults to Army selection. Given most people are probably going to want to view the units.","Commit":"Fix","Important":"False"},{"Id":16,"GitPatchModelId":9,"Name":"Mobile Menu Back","Description":"You can now click the page after selecting a Section, to go back to Section nav.","Commit":"Fix","Important":"False"},{"Id":17,"GitPatchModelId":10,"Name":"Mobile Menu Fixed","Description":"Fixed the mobile menu not actually being positioned to the bottom of the screen on phones.","Commit":"Fix","Important":"False"},{"Id":18,"GitPatchModelId":11,"Name":"Tablet Menu","Description":"Added a hamburger nav menu for tablets.","Commit":"Feature","Important":"False"},{"Id":19,"GitPatchModelId":11,"Name":"Mobile Menu","Description":"Added a bottom nav menu for phones.","Commit":"Feature","Important":"False"},{"Id":20,"GitPatchModelId":12,"Name":"0.0.6.8375a","Description":"Database updated to 0.0.6.8375a","Commit":"Game Patch","Important":"True"},{"Id":21,"GitPatchModelId":12,"Name":"Database Descriptions","Description":"Added more text descriptions to buildings and etc..","Commit":"Feature","Important":"False"},{"Id":22,"GitPatchModelId":12,"Name":"Guids","Description":"Now using Guids and strings over enums. View in /raw-database page.","Commit":"Feature","Important":"False"},{"Id":23,"GitPatchModelId":12,"Name":"Mobile UI","Description":"Additional mobile UI improvements. Harass calculator now has fewer inputs that don\u0027t matter.","Commit":"Feature","Important":"False"},{"Id":24,"GitPatchModelId":12,"Name":"Bug Tasks","Description":"Added feature/bug task indicator to agile view. Added consume mote bug in build calculator to next sprint. (Calculator not consuming motes on Town Hall building)","Commit":"Feature","Important":"False"},{"Id":25,"GitPatchModelId":12,"Name":"Entity Display UI","Description":"Display UI improved. Build Calculator now uses the same Entity display UI as the Database.","Commit":"Style","Important":"False"},{"Id":26,"GitPatchModelId":13,"Name":"Removed Embedded YouTube","Description":"Having embedded videos makes my privacy policy look completely untrue. Removed the video (it\u0027s now a link) and added a message on the privacy policy to point out that the error occured.","Commit":"Fix","Important":"False"},{"Id":27,"GitPatchModelId":13,"Name":"Agile View Backlog","Description":"Added backlog rendering to the Agile View Page. Added priority level to better indicate what tasks have high or zero priority.","Commit":"Feature","Important":"False"},{"Id":28,"GitPatchModelId":14,"Name":"Privacy Policy Page","Description":"The privacy policy is now a page rather than a blurb on the About page.","Commit":"Feature","Important":"False"},{"Id":29,"GitPatchModelId":14,"Name":"Privacy Policy Update","Description":"I added information on how I use personal data. And a disclaimer that privacy can never be guaranteed.","Commit":"Privacy Policy","Important":"False"},{"Id":30,"GitPatchModelId":14,"Name":"Minor Tweaks","Description":"Minor UI changes and text fixes.","Commit":"None","Important":"False"},{"Id":31,"GitPatchModelId":15,"Name":"Homepage","Description":"Making Of page no longer shows on the homepage","Commit":"Fix","Important":"False"},{"Id":32,"GitPatchModelId":15,"Name":"DevOnly Component","Description":"Added a DevOnly component to wrap UI content that should not be released to production. I.e. the Homepage bug.","Commit":"Feature","Important":"False"},{"Id":33,"GitPatchModelId":16,"Name":"Agile View","Description":"Add an agile page to show current activities.","Commit":"Feature","Important":"False"},{"Id":34,"GitPatchModelId":16,"Name":"Rendering Entire Database","Description":"I can now render the database without lag. Not sure what fixed it.","Commit":"Fix","Important":"False"},{"Id":35,"GitPatchModelId":16,"Name":"Database Data","Description":"Added a ton of data to the database. Such as various descriptions. More work is still to be done.","Commit":"Feature","Important":"False"},{"Id":36,"GitPatchModelId":16,"Name":"Database Ids","Description":"Database has less duplicated content. Army entities now link to their Upgrades and Abilities. More work is still to be done.","Commit":"Feature","Important":"False"},{"Id":37,"GitPatchModelId":16,"Name":"Blades of the Godhead Requirement","Description":"Fixed the requirement incorrectly being the Eye of Aros. Now is properly Bearer of the Crown.","Commit":"Fix","Important":"False"},{"Id":38,"GitPatchModelId":16,"Name":"UI Changes","Description":"Various UI changes and tweaks","Commit":"Style","Important":"False"},{"Id":39,"GitPatchModelId":16,"Name":"Streams","Description":"Added a Streams page. It mentions plans to do Twitch streams on Sunday.","Commit":"Feature","Important":"False"},{"Id":40,"GitPatchModelId":16,"Name":"IMMORTAL","Description":"Fixed \u0022IMMORTAL: Gates of Pyre\u0022 game title. Will no longer refer to it as \u0022Immortal: Gates of Pyre\u0022.","Commit":"Typo","Important":"False"},{"Id":41,"GitPatchModelId":16,"Name":"Mobile Support","Description":"All the pages should now work on phones.","Commit":"Feature","Important":"False"},{"Id":42,"GitPatchModelId":17,"Name":"Form Text","Description":"Fixed search bar in database, name and colour in build calculator, from not rendering \uD83D\uDE10","Commit":"Fix","Important":"False"},{"Id":43,"GitPatchModelId":17,"Name":"UI Test Automation Road Map","Description":"Adding test automation to the roadmap","Commit":"Planning","Important":"False"},{"Id":44,"GitPatchModelId":18,"Name":"Build Calculator Interval","Description":"600 is too laggy. Reducing to 360 until optimizations are done.","Commit":"Fix","Important":"False"},{"Id":45,"GitPatchModelId":18,"Name":"Changelog Patch Date","Description":"Fixed date on previous patch in changelog. Should be one day earlier.","Commit":"Fix","Important":"False"},{"Id":46,"GitPatchModelId":19,"Name":"UI Overhaul","Description":"Cleaned up and restyled a lot of UI. Like Page Containers, Alerts, Forms, Nav Buttons, and more.","Commit":"Style","Important":"False"},{"Id":47,"GitPatchModelId":19,"Name":"Separate Pages","Description":"Navigation now uses different pages, instead of loading content onto the main page.","Commit":"Feature","Important":"False"},{"Id":48,"GitPatchModelId":19,"Name":"Making Of","Description":"Adding Making Of page for design reference.","Commit":"Feature","Important":"False"},{"Id":49,"GitPatchModelId":19,"Name":"Change Log","Description":"Adding Change Log page for viewing update history.","Commit":"Feature","Important":"False"},{"Id":50,"GitPatchModelId":19,"Name":"Mobile Priority","Description":"Changed mobile support priority in roadmap from low and possible to high and planned, and updated description.","Commit":"Planning","Important":"False"},{"Id":51,"GitPatchModelId":20,"Name":"Purple Colours","Description":"Added placeholder-ish purple color scheme.","Commit":"Style","Important":"False"},{"Id":52,"GitPatchModelId":20,"Name":"SQL","Description":"Agile and Change Log pages now use JSON made from SQL","Commit":"Feature","Important":"False"},{"Id":53,"GitPatchModelId":21,"Name":"Discord Link","Description":"Made a discord for the website, and added invite link to contact page","Commit":"Feature","Important":"False"},{"Id":54,"GitPatchModelId":21,"Name":"Loading Improvemnts","Description":"Agile and Change Log loading improved","Commit":"Feature","Important":"False"},{"Id":55,"GitPatchModelId":21,"Name":"Desktop Nav closing","Description":"Desktop nav menu now closes when a page link is clicked","Commit":"Feature","Important":"False"},{"Id":56,"GitPatchModelId":22,"Name":"0.0.6.8900a","Description":"Database updated to 0.0.6.8900a","Commit":"Game Patch","Important":"True"},{"Id":57,"GitPatchModelId":23,"Name":"Database Links","Description":"Various entity references in the database now link to the entity via a dialog interface","Commit":"Feature","Important":"False"},{"Id":58,"GitPatchModelId":24,"Name":"Documentation Page","Description":"Added a docs page with some starter setup information","Commit":"Feature","Important":"False"},{"Id":59,"GitPatchModelId":24,"Name":"Database Filters","Description":"Fixed filter defaults. Removed unimportant filter types","Commit":"Fix","Important":"False"},{"Id":60,"GitPatchModelId":25,"Name":"Database Fixes","Description":"Various fixes to bad data. Added some missing entities","Commit":"Fix","Important":"False"},{"Id":61,"GitPatchModelId":25,"Name":"Plain View","Description":"Database can now change to plain view for easy copy and pasting","Commit":"Feature","Important":"False"},{"Id":62,"GitPatchModelId":25,"Name":"Direct Links","Description":"Database now supports direct links. database/Throne to see just Throne","Commit":"Feature","Important":"False"},{"Id":63,"GitPatchModelId":26,"Name":"Better Navigation","Description":"Documentational pages now use a more logical navigation format, with sections, and parent-child documents","Commit":"Feature","Important":"False"},{"Id":64,"GitPatchModelId":26,"Name":"Style Improvements","Description":"Improved home page styling on website highlighted content","Commit":"Style","Important":"False"},{"Id":65,"GitPatchModelId":26,"Name":"Warning Cleanup","Description":"Removed a bunch of development code warnings","Commit":"Chore","Important":"False"},{"Id":66,"GitPatchModelId":27,"Name":"Toasts","Description":"Added some error toasts to build calculator. Needs work","Commit":"Feature","Important":"False"},{"Id":67,"GitPatchModelId":27,"Name":"Localization Text","Description":"Added localization logic for handling some text. Currently only supporting English","Commit":"Feature","Important":"False"},{"Id":68,"GitPatchModelId":27,"Name":"GitHub Button","Description":"Harass Calculator now links to code in repo, instead of showing it as text","Commit":"Feature","Important":"False"},{"Id":69,"GitPatchModelId":28,"Name":"Markdown","Description":"Docs and Notes are now easily editable markdown files. Navigation will still be handled via SQL formatted data.","Commit":"Feature","Important":"False"},{"Id":70,"GitPatchModelId":28,"Name":"Passive Data","Description":"Added new passive data from Twitter post.","Commit":"Feature","Important":"True"},{"Id":71,"GitPatchModelId":28,"Name":"Toast Fade","Description":"Fixed toasts not fading out over time.","Commit":"Fix","Important":"False"},{"Id":72,"GitPatchModelId":28,"Name":"Click Desktop Menu","Description":"Added better menu navigation for desktop users.","Commit":"Feature","Important":"False"},{"Id":73,"GitPatchModelId":29,"Name":"Added document on Hotkeys","Description":"Document on how to customize hotkeys","Commit":"Feature","Important":"False"},{"Id":74,"GitPatchModelId":29,"Name":"0.0.6.9121a","Description":"Database updated to v0.0.6.9121a","Commit":"Game Patch","Important":"True"},{"Id":75,"GitPatchModelId":30,"Name":"Build Calculator Optimizations","Description":"Now faster","Commit":"Feature","Important":"False"},{"Id":76,"GitPatchModelId":31,"Name":"Cancel Not Reverting","Description":"Cancel button removes unlocked tech again","Commit":"Fix","Important":"False"},{"Id":77,"GitPatchModelId":31,"Name":"GroveHeart Upgrade","Description":"Can upgrade Grove Heart again","Commit":"Fix","Important":"False"},{"Id":78,"GitPatchModelId":31,"Name":"Locked Text","Description":"Hotkey Text is now always visible. Text is gray when key is locked behind tech","Commit":"Style","Important":"False"},{"Id":79,"GitPatchModelId":31,"Name":"Immortal Filters","Description":"This works again. Switching between Ajari and Orzum will changes unit choices","Commit":"Fix","Important":"False"},{"Id":80,"GitPatchModelId":31,"Name":"Added Missing Data","Description":"Added missing data for filtering and unlocking entities","Commit":"Fix","Important":"False"},{"Id":81,"GitPatchModelId":32,"Name":"Offline mode","Description":"You can now use the website offline","Commit":"Feature","Important":"False"},{"Id":82,"GitPatchModelId":32,"Name":"Search Bar","Description":"Desktop users now have a search bar. Very WIP, needs some QOL","Commit":"Feature","Important":"False"},{"Id":83,"GitPatchModelId":32,"Name":"Style Changes","Description":"Changes to styles to RoadMap and Desktop Navigation","Commit":"Style","Important":"False"},{"Id":84,"GitPatchModelId":32,"Name":"Build Calculator Improvements","Description":"Additional tweaks to build calculator UI and features","Commit":"Feature","Important":"False"},{"Id":85,"GitPatchModelId":32,"Name":"Stub Pages","Description":"Added blank stub pages","Commit":"Feature","Important":"False"},{"Id":86,"GitPatchModelId":33,"Name":"Search Hotkey","Description":"Making the search hotkey work.","Commit":"Feature","Important":"False"},{"Id":87,"GitPatchModelId":34,"Name":"Economy Comparison","Description":"Compare two economies together. WIP and contains bugs","Commit":"Feature","Important":"False"},{"Id":88,"GitPatchModelId":35,"Name":"v0.0.6.9201a","Description":"Database updated to v0.0.6.9201a","Commit":"Game Patch","Important":"True"}] \ No newline at end of file diff --git a/IGP/wwwroot/generated/GitPatchModels.json b/IGP/wwwroot/generated/GitPatchModels.json index 62835ce..b9b36ce 100644 --- a/IGP/wwwroot/generated/GitPatchModels.json +++ b/IGP/wwwroot/generated/GitPatchModels.json @@ -1 +1 @@ -[{"Id":1,"Name":"Database UX Patch","Date":"2022-03-13T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":2,"Name":"Thrum Stats Hotfix","Date":"2022-03-12T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":3,"Name":"Memory Tester Patch","Date":"2022-03-01T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":4,"Name":"Hide Pyre Hotfix","Date":"2022-02-20T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":5,"Name":"Stream Patch","Date":"2022-02-20T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":6,"Name":"Agile UI Hotfix","Date":"2022-02-20T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":7,"Name":"Armor Patch","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":8,"Name":"Home Page Patch","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":9,"Name":"Mobile Menu Hotfix 2","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":10,"Name":"Mobile Menu Hotfix","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":11,"Name":"Mobile Menu Patch","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":12,"Name":"0.0.6.8375a Patch","Date":"2022-02-18T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":13,"Name":"Google Tracking Hotfix","Date":"2022-02-18T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":14,"Name":"Privacy Policy Patch","Date":"2022-02-17T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":15,"Name":"Home Page Quick Hotfix","Date":"2022-02-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":16,"Name":"Early Agile Patch","Date":"2022-02-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":17,"Name":"Form Text Rendering Hotfix","Date":"2022-02-15T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":18,"Name":"Reducing Timing Interval Hotfix","Date":"2022-02-15T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":19,"Name":"Changelog Patch","Date":"2022-02-14T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":20,"Name":"SQL Patch","Date":"2022-03-26T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":21,"Name":"Stream Patch","Date":"2022-03-30T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":22,"Name":"0.0.6.8900a Patch","Date":"2022-03-30T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":23,"Name":"Database Links Patch","Date":"2022-04-01T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":24,"Name":"Open Source Patch","Date":"2022-04-03T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":25,"Name":"Stream Patch","Date":"2022-04-03T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":26,"Name":"Notes/Docs Patch","Date":"2022-04-10T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":27,"Name":"Stream Patch","Date":"2022-04-10T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":28,"Name":"Passive Patch","Date":"2022-04-12T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":29,"Name":"0.0.6.9121a Patch","Date":"2022-04-13T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":30,"Name":"Stream Patch","Date":"2022-04-13T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":31,"Name":"BuildCalc Hotfix","Date":"2022-04-13T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":32,"Name":"Search Patch","Date":"2022-04-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":33,"Name":"Search Hotfix","Date":"2022-04-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":34,"Name":"Stream Patch","Date":"2022-04-17T00:00:00","GitChangeModels":[],"Important":"False"}] \ No newline at end of file +[{"Id":1,"Name":"Database UX Patch","Date":"2022-03-13T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":2,"Name":"Thrum Stats Hotfix","Date":"2022-03-12T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":3,"Name":"Memory Tester Patch","Date":"2022-03-01T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":4,"Name":"Hide Pyre Hotfix","Date":"2022-02-20T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":5,"Name":"Stream Patch","Date":"2022-02-20T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":6,"Name":"Agile UI Hotfix","Date":"2022-02-20T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":7,"Name":"Armor Patch","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":8,"Name":"Home Page Patch","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":9,"Name":"Mobile Menu Hotfix 2","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":10,"Name":"Mobile Menu Hotfix","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":11,"Name":"Mobile Menu Patch","Date":"2022-02-19T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":12,"Name":"0.0.6.8375a Patch","Date":"2022-02-18T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":13,"Name":"Google Tracking Hotfix","Date":"2022-02-18T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":14,"Name":"Privacy Policy Patch","Date":"2022-02-17T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":15,"Name":"Home Page Quick Hotfix","Date":"2022-02-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":16,"Name":"Early Agile Patch","Date":"2022-02-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":17,"Name":"Form Text Rendering Hotfix","Date":"2022-02-15T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":18,"Name":"Reducing Timing Interval Hotfix","Date":"2022-02-15T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":19,"Name":"Changelog Patch","Date":"2022-02-14T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":20,"Name":"SQL Patch","Date":"2022-03-26T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":21,"Name":"Stream Patch","Date":"2022-03-30T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":22,"Name":"0.0.6.8900a Patch","Date":"2022-03-30T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":23,"Name":"Database Links Patch","Date":"2022-04-01T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":24,"Name":"Open Source Patch","Date":"2022-04-03T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":25,"Name":"Stream Patch","Date":"2022-04-03T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":26,"Name":"Notes/Docs Patch","Date":"2022-04-10T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":27,"Name":"Stream Patch","Date":"2022-04-10T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":28,"Name":"Passive Patch","Date":"2022-04-12T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":29,"Name":"0.0.6.9121a Patch","Date":"2022-04-13T00:00:00","GitChangeModels":[],"Important":"True"},{"Id":30,"Name":"Stream Patch","Date":"2022-04-13T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":31,"Name":"BuildCalc Hotfix","Date":"2022-04-13T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":32,"Name":"Search Patch","Date":"2022-04-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":33,"Name":"Search Hotfix","Date":"2022-04-16T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":34,"Name":"Stream Patch","Date":"2022-04-17T00:00:00","GitChangeModels":[],"Important":"False"},{"Id":35,"Name":"v0.0.6.9201a Patch","Date":"2022-04-18T00:00:00","GitChangeModels":[],"Important":"True"}] \ No newline at end of file diff --git a/IGP/wwwroot/generated/Variables.json b/IGP/wwwroot/generated/Variables.json new file mode 100644 index 0000000..7514d33 --- /dev/null +++ b/IGP/wwwroot/generated/Variables.json @@ -0,0 +1 @@ +[{"Key":"GamePatch","Value":"v0.0.6.9201a"}] \ No newline at end of file diff --git a/IGP_Convert/Program.cs b/IGP_Convert/Program.cs index e135133..34aa194 100644 --- a/IGP_Convert/Program.cs +++ b/IGP_Convert/Program.cs @@ -27,4 +27,6 @@ using (var db = new DatabaseContext(options.Options)) File.WriteAllTextAsync($"{webPath}/NoteContentModels.json", JsonSerializer.Serialize(db.NoteContentModels)); File.WriteAllTextAsync($"{webPath}/NoteConnectionModels.json", JsonSerializer.Serialize(db.NoteConnectionModels)); File.WriteAllTextAsync($"{webPath}/NoteSectionModels.json", JsonSerializer.Serialize(db.NoteSectionModels)); + + File.WriteAllTextAsync($"{webPath}/Variables.json", JsonSerializer.Serialize(db.Variables)); } \ No newline at end of file diff --git a/Model/Entity/Data/DATA.cs b/Model/Entity/Data/DATA.cs index 096eb9f..5b9ec64 100644 --- a/Model/Entity/Data/DATA.cs +++ b/Model/Entity/Data/DATA.cs @@ -2368,7 +2368,7 @@ public class DATA .AddPart(new EntityProductionModel { DefensiveLayer = 30, Cooldown = 40 }) .AddPart(new EntityRequirementModel { Id = DataType.UPGRADE_RadiantWard }) .AddPart(new EntityVitalityModel - { Health = 30, DefenseLayer = 30, Lasts = 30, Armor = ArmorType.Light, IsStructure = true }) + { Health = 30, DefenseLayer = 30, Lasts = 30, Armor = ArmorType.Light }) .AddPart(new EntityRequirementModel { Id = DataType.BUILDING_HouseOfFadingSaints, diff --git a/Model/Entity/EntityModel.cs b/Model/Entity/EntityModel.cs index 3080424..46d8846 100644 --- a/Model/Entity/EntityModel.cs +++ b/Model/Entity/EntityModel.cs @@ -12,8 +12,6 @@ namespace Model.Entity; public class EntityModel { - public static readonly string GameVersion = "0.0.6.9121a"; - private static Dictionary _database = null!; private static List _entityModels = null!; diff --git a/Model/Variable.cs b/Model/Variable.cs new file mode 100644 index 0000000..9b49653 --- /dev/null +++ b/Model/Variable.cs @@ -0,0 +1,10 @@ +using System.ComponentModel.DataAnnotations; + +namespace Model; + +public class Variable +{ + [Key] + public string Key { get; set; } = ""; + public string Value { get; set; } = ""; +} \ No newline at end of file diff --git a/Services/IServices.cs b/Services/IServices.cs index 39d7fe6..d48346a 100644 --- a/Services/IServices.cs +++ b/Services/IServices.cs @@ -45,6 +45,13 @@ public interface ISearchService void Hide(); } +public interface IVariableService +{ + public Dictionary Variables { get; set; } + public Task Load(); + public bool IsLoaded(); +} + public interface IEconomyComparisonService { public List BuildsToCompare { get; set; } diff --git a/Services/Website/VariableService.cs b/Services/Website/VariableService.cs new file mode 100644 index 0000000..4794208 --- /dev/null +++ b/Services/Website/VariableService.cs @@ -0,0 +1,40 @@ +using System.Net.Http.Json; +using Model; + +namespace Services.Website; + +public class VariableService : IVariableService +{ + private readonly HttpClient httpClient; + + private bool isLoaded; + + + public VariableService(HttpClient httpClient) + { + this.httpClient = httpClient; + } + + public Dictionary Variables { get; set; } = new(); + + public bool IsLoaded() + { + return isLoaded; + } + + public async Task Load() + { + if (isLoaded) return; + + var variables = (await httpClient.GetFromJsonAsync("generated/Variables.json"))! + .ToList(); + + foreach (var variable in variables) + { + Variables.Add(variable.Key, variable.Value); + } + + isLoaded = true; + } + +} \ No newline at end of file