From c20ac02beb8520953d90d0d9114371fe36187ed0 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 30 May 2017 20:25:44 +0200 Subject: Allow ClonkOutputInterface to stop further propagation if the return value of the callback is true --- src/crsm.hpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/crsm.hpp') diff --git a/src/crsm.hpp b/src/crsm.hpp index abae69a..61f3cca 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -112,18 +112,19 @@ public: void start(); bool isOk(); - void lobbyCountdown(unsigned int seconds); - void lobbyCountdownAborted(); - void watchdog(const QString &id); - void clientMessage(ClientInfo &client, const QString &message, ClonkOutputInterface::MessageType type, const QTime& time); - void clientConnected(const ClientInfo &client); - void clientRemoved(const ClientInfo &client, const QString& reason); - void gameLoading(); - void gameStarted(); - void masterserverError(const QString &msg); - void raw(const QString& line); - void rawTimed(const QString& line, const QTime& time); - void playerRemoved(const QString &name); + bool lobbyCountdown(unsigned int seconds); + bool lobbyCountdownAborted(); + bool watchdog(const QString &id); + bool clientMessage(ClientInfo &client, const QString &message, ClonkOutputInterface::MessageType type, const QTime& time); + bool clientConnected(const ClientInfo &client); + bool clientRemoved(const ClientInfo &client, const QString& reason); + bool gameLoading(); + bool gameStarted(); + bool masterserverError(const QString &msg); + bool raw(const QString& line); + bool rawTimed(const QString& line, const QTime& time); + bool playerRemoved(const QString &name); + signals: private slots: -- cgit v1.2.3-54-g00ecf