Reestructurant la classe Options

This commit is contained in:
2025-02-23 18:12:02 +01:00
parent 3ba4293e8a
commit 2ee0c70319
48 changed files with 898 additions and 984 deletions

View File

@@ -1,5 +1,5 @@
#include "global_events.h"
#include "options.h" // Para Options, options, OptionsGame, OptionsAudio
#include "options.h" // Para Options, options, OptionsGame, OptionsAudio
#include "mouse.h"
namespace globalEvents
@@ -10,14 +10,14 @@ namespace globalEvents
// Evento de salida de la aplicación
if (event.type == SDL_QUIT)
{
options.section.name = SECTION_QUIT;
options.section.section = Section::QUIT;
return;
}
if (event.type == SDL_RENDER_DEVICE_RESET || event.type == SDL_RENDER_TARGETS_RESET)
{
//reLoadTextures();
}
{
// reLoadTextures();
}
Mouse::handleEvent(event);
}