mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-05-01 13:01:22 +00:00
Make hookset<T> a pointer type, just like purehookset.
No more declaring `hookset<T> *hooks_foo`; now it's just `hookset<T> hooks_foo` at global scope. This clears the way to make `hookset<T>` into a class type if we want.
This commit is contained in:
@@ -76,7 +76,7 @@ bool do_use_special_land() {
|
||||
}
|
||||
|
||||
/** \brief Hooks for welcomeMessage. Return true to capture. */
|
||||
EX hookset<bool()> *hooks_welcome_message;
|
||||
EX hookset<bool()> hooks_welcome_message;
|
||||
|
||||
/** \brief Print the welcome message during the start of game. Depends on the current mode and other settings. */
|
||||
EX void welcomeMessage() {
|
||||
@@ -144,7 +144,7 @@ EX void welcomeMessage() {
|
||||
}
|
||||
|
||||
/** \brief These hooks are called at the start of initgame. */
|
||||
EX hookset<void()> *hooks_initgame;
|
||||
EX hookset<void()> hooks_initgame;
|
||||
|
||||
/** \brief initialize the game */
|
||||
EX void initgame() {
|
||||
|
||||
Reference in New Issue
Block a user