From 43bbc9e21d5f0e4454d39a1dd4c1162935bdbf4a Mon Sep 17 00:00:00 2001 From: ethan Date: Tue, 22 Apr 2025 13:37:50 -0400 Subject: [PATCH] Preload scripts on boot and grab by ID for less file io operations + general cleanup --- Resources/monsters/shooty_peeps.xml | 3 + Resources/scenes/debugScene.xml | 11 +- Resources/scripts/ai_scripts.xml | 4 + Resources/scripts/weapon_scripts.xml | 3 + .../weapons/{bubblegun.xml => weapon_def.xml} | 2 +- .../include/utility/resourcemanager.h | 115 +- YuppleMayham/include/utility/script.h | 42 +- YuppleMayham/include/utility/xmlloader.h | 348 ++--- YuppleMayham/src/gameplay/scene.cpp | 6 +- YuppleMayham/src/graphics/texture.cpp | 242 ++-- YuppleMayham/src/utility/resourcemanager.cpp | 234 ++-- YuppleMayham/src/utility/xmlloader.cpp | 1187 ++++++++++------- 12 files changed, 1195 insertions(+), 1002 deletions(-) create mode 100644 Resources/monsters/shooty_peeps.xml create mode 100644 Resources/scripts/ai_scripts.xml create mode 100644 Resources/scripts/weapon_scripts.xml rename Resources/weapons/{bubblegun.xml => weapon_def.xml} (96%) diff --git a/Resources/monsters/shooty_peeps.xml b/Resources/monsters/shooty_peeps.xml new file mode 100644 index 0000000..bad62c2 --- /dev/null +++ b/Resources/monsters/shooty_peeps.xml @@ -0,0 +1,3 @@ + + + diff --git a/Resources/scenes/debugScene.xml b/Resources/scenes/debugScene.xml index 39c9326..6b4ac64 100644 --- a/Resources/scenes/debugScene.xml +++ b/Resources/scenes/debugScene.xml @@ -3,20 +3,17 @@ - + -