From 10d0fed889d5f8e9040880ec416034406169fb5d Mon Sep 17 00:00:00 2001 From: Hipposgrumm <60556345+Hipposgrumm@users.noreply.github.com> Date: Sat, 13 Jul 2024 08:46:28 -0600 Subject: [PATCH] Added Support for Math Blaster Movies (#9) Added a result for type `MathBlasterMovie`. --- .../Common/ConfigurationController.cs | 4 ++ src/Resources/content_blastermovie.xml | 52 +++++++++++++++++++ src/sodoff.csproj | 4 ++ 3 files changed, 60 insertions(+) create mode 100644 src/Resources/content_blastermovie.xml diff --git a/src/Controllers/Common/ConfigurationController.cs b/src/Controllers/Common/ConfigurationController.cs index 99ddcd9..1715f53 100644 --- a/src/Controllers/Common/ConfigurationController.cs +++ b/src/Controllers/Common/ConfigurationController.cs @@ -43,6 +43,10 @@ public class ConfigurationController : Controller { { ContentInfoArray = XmlUtil.DeserializeXml(XmlUtil.ReadResourceXmlString("content_learning")) }); + if (contentType == 5) return Ok(new ContentInfo + { + ContentInfoArray =XmlUtil.DeserializeXml(XmlUtil.ReadResourceXmlString("content_blastermovie")) + }); return NotFound(); } diff --git a/src/Resources/content_blastermovie.xml b/src/Resources/content_blastermovie.xml new file mode 100644 index 0000000..31c1518 --- /dev/null +++ b/src/Resources/content_blastermovie.xml @@ -0,0 +1,52 @@ + + + + Blaster B.F.F's + RS_MOVIES/BlasterMovieBestFriend.jpg + RS_MOVIES/BlasterMovieBestFriend.ogg + 5 + false + RS_MOVIES/MasterBasicsIntro.jpg + 2 + + + + The Terrible Monkey King + RS_MOVIES/BlasterMovie9-12.jpg + RS_MOVIES/BlasterMovie9-12.ogg + 5 + false + RS_MOVIES/MasterBasicsIntro.jpg + 2 + + + + Master the Basics + RS_MOVIES/MasterBasicsIntro.jpg + RS_MOVIES/MasterBasicsIntro.ogg + 5 + false + RS_MOVIES/MasterBasicsIntro.jpg + 2 + + + + Gelator the Brain Drainer + RS_MOVIES/BlasterMovie6-9.jpg + RS_MOVIES/BlasterMovie6-9.ogg + 5 + false + RS_MOVIES/MasterBasicsIntro.jpg + 2 + + + + Bugs in the System + RS_MOVIES/MB89Intro.jpg + RS_MOVIES/MB89Intro.ogg + 5 + false + RS_MOVIES/MasterBasicsIntro.jpg + 2 + + \ No newline at end of file diff --git a/src/sodoff.csproj b/src/sodoff.csproj index cd1b961..85752af 100644 --- a/src/sodoff.csproj +++ b/src/sodoff.csproj @@ -56,6 +56,7 @@ + @@ -148,6 +149,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest