mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
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:
parent
4d2ca29940
commit
8b8f11d72e
13 changed files with 609 additions and 876 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue