 |
Crossfire Resources Editor
|
Go to the documentation of this file.
13 #ifndef _MESSAGEMANAGER_H
14 #define _MESSAGEMANAGER_H
31 virtual QString
displayName()
const override {
return tr(
"NPC dialogs"); }
53 const QList<MessageFile*>&
messages()
const;
79 void findPrePost(
const QString directory, QList<QuestConditionScript*>& list);
QString loadScriptComment(const QString &path) const
QList< QuestConditionScript * > myPreConditions
One pre- or post- condition Python script which may be used in a NPC dialog.
MessageFile * findMessage(const QString &path)
Get the dialog from a file path.
void loadMessages()
Load all messages from the 'maps' directory.
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
QList< MessageFile * > & messages()
Get all known NPC dialogs.
MessageManager(AssetWrapper *parent)
One NPC dialog file, mostly a collection of MessageRule.
QList< QuestConditionScript * > postConditions() const
Get all dialog post-conditions.
virtual int childrenCount() const override
QList< QuestConditionScript * > myPostConditions
virtual ~MessageManager()
QList< QuestConditionScript * > preConditions() const
Get all dialog pre-conditions.
virtual QString displayName() const override
Base class for all assets that can be displayed or edited by CRE.
QList< MessageFile * > myMessages
void loadDirectory(const QString &directory)
virtual AssetWrapper * child(int child) override
virtual int childIndex(AssetWrapper *child) override
void findPrePost(const QString directory, QList< QuestConditionScript * > &list)
void saveMessages()
Save all messages.