diff options
Diffstat (limited to 'src/crsm.hpp')
| -rw-r--r-- | src/crsm.hpp | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/src/crsm.hpp b/src/crsm.hpp index fc4ee1e..117df9d 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -50,21 +50,6 @@ public: ScenarioSettings(const QString& name, const ClientInfo& client, bool league = false) : name(name), league(league), wishClient(client) {} }; -struct CRSMSession { - bool IrcUseIngameChat = false; - bool League = false; - bool Running = false; - bool UserWish = false; - int CountDown = -1; - bool Hosting = false; - QString ScenarioName = ""; - - void clear() - { - *this = CRSMSession(); - } -}; - class CRSM : public QObject { private: @@ -120,6 +105,33 @@ private slots: private: CRSMConfig Config; + + struct CRSMSession { + bool IrcUseIngameChat = false; + bool League = false; + bool Running = false; + bool UserWish = false; + int CountDown = -1; + bool Hosting = false; + QString ScenarioName = ""; + + + struct { + ClientInfo Admin; + QMap<QString, ClientInfo> Clients; + QMap<ClientInfo, QDateTime> LeaveAdmins; + } Clonk; + + struct { + ClientInfo Admin; + } IRC; + + void clear() + { + *this = CRSMSession(); + } + } Session; + QList<ScenarioSettings> userlist; QList<ScenarioSettings> autolist; QList<ScenarioSettings> nextAutoScens; @@ -135,14 +147,9 @@ private: QTextStream *qout; QTextStream *qin; bool finish; - CRSMSession Session; - QMap<QString, ClientInfo> clients; IrcConnection *connection = 0; bool autoHost = true; QSignalMapper greetMapper; - ClientInfo sessionAdmin; - ClientInfo ircAdmin; - QMap<ClientInfo, QDateTime> leaveAdmins; QFile *logfile; QTextStream logstream; QTextCodec *codec; |
