-
Notifications
You must be signed in to change notification settings - Fork 820
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move QuickMessages to its own library
Eliminates an options->diablo dependency.
- Loading branch information
Showing
8 changed files
with
54 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "quick_messages.hpp" | ||
|
||
#include <array> | ||
|
||
#include "utils/language.h" | ||
|
||
namespace devilution { | ||
|
||
std::array<QuickMessage, 10> QuickMessages = { | ||
QuickMessage { "QuickMessage1", N_("I need help! Come here!") }, | ||
QuickMessage { "QuickMessage2", N_("Follow me.") }, | ||
QuickMessage { "QuickMessage3", N_("Here's something for you.") }, | ||
QuickMessage { "QuickMessage4", N_("Now you DIE!") }, | ||
QuickMessage { "QuickMessage5", N_("Heal yourself!") }, | ||
QuickMessage { "QuickMessage6", N_("Watch out!") }, | ||
QuickMessage { "QuickMessage7", N_("Thanks.") }, | ||
QuickMessage { "QuickMessage8", N_("Retreat!") }, | ||
QuickMessage { "QuickMessage9", N_("Sorry.") }, | ||
QuickMessage { "QuickMessage10", N_("I'm waiting.") }, | ||
}; | ||
|
||
} // namespace devilution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include <array> | ||
|
||
namespace devilution { | ||
|
||
struct QuickMessage { | ||
/** Config variable names for quick message */ | ||
const char *const key; | ||
/** Default quick message */ | ||
const char *const message; | ||
}; | ||
|
||
extern std::array<QuickMessage, 10> QuickMessages; | ||
|
||
} // namespace devilution |