Consolidation of Trick Settings data (#3798)

* Adds TrickOption subclass and fills in extra info.

Fills in the extra info from randomizer_tricks.cpp that other Options don't have (hence the subclass for Tricks specifically).

* Uses new definitions of tricks in ImGui menu.

* Removes randomizer_tricks.cpp/h

* Adds new tricks.cpp/h to hold some static data and functions.

* Refactors Tricks namespace into a class with only static memebers and functions.

* Fixes bug with Trick Tag system.
This commit is contained in:
Christopher Leggett 2024-01-06 11:07:19 -05:00 committed by GitHub
commit 8b8f11d72e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 609 additions and 876 deletions

View file

@ -12,6 +12,8 @@
#include <fstream>
#include <spdlog/spdlog.h>
#include "luslog.h"
namespace Rando {
std::weak_ptr<Context> Context::mContext;
@ -604,7 +606,7 @@ Option& Context::GetOption(const RandomizerSettingKey key) const {
return mSettings->GetOption(key);
}
Option& Context::GetTrickOption(const RandomizerTrick key) const {
TrickOption& Context::GetTrickOption(const RandomizerTrick key) const {
return mSettings->GetTrickOption(key);
}
} // namespace Rando