COUP-01: notification_presets.hpp mogut de game/ui/ a core/rendering/
El fitxer definia presets del Notifier (que ja viu a core/rendering/), però estava a game/ i era consumit únicament per core/input/global_inputs.cpp — una dependència invertida core→game. El mogueu al costat del component que consumeix; el comentari de `notifier.hpp` hi apunta. `game/ui/` es queda només amb `ui_palette.hpp`.
This commit is contained in:
1 parent
e6c7f0dcfb
commit
ab7a79dc50
4 files changed
+5
-5
No files matched your search
@@ -7,12 +7,12 @@
|
||||
|
||||
#include "core/input/key_config.hpp"
|
||||
#include "core/locale/locale.hpp"
|
||||
#include "core/rendering/notification_presets.hpp"
|
||||
#include "core/rendering/notifier.hpp"
|
||||
#include "core/rendering/render_info.hpp"
|
||||
#include "core/rendering/screen.hpp"
|
||||
#include "core/system/event_buffer.hpp"
|
||||
#include "game/options.hpp"
|
||||
#include "game/ui/notification_presets.hpp"
|
||||
#include "utils/defaults.hpp"
|
||||
|
||||
namespace GlobalInputs {
|
||||
|
||||
File renamed without changes.
@@ -17,8 +17,8 @@ class Text;
|
||||
// a l'arrencada; si Notifier::init() es crida primer, les carrega ell).
|
||||
//
|
||||
// API crua: Notifier::get().notify(text, text_color, bg_color, time_ms).
|
||||
// Per a treballar amb presets del joc, vegeu Notification::notify() a
|
||||
// game/ui/notification_presets.hpp.
|
||||
// Per a treballar amb presets pre-definits, vegeu Notification::notify() a
|
||||
// core/rendering/notification_presets.hpp.
|
||||
class Notifier {
|
||||
public:
|
||||
static auto get() -> Notifier&;
|
||||
|
||||
Reference in new issue
Block a user