summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/attendancehandler.cpp42
-rw-r--r--src/net/eathena/attendancehandler.h40
-rw-r--r--src/net/eathena/generalhandler.cpp3
-rw-r--r--src/net/eathena/generalhandler.h2
4 files changed, 87 insertions, 0 deletions
diff --git a/src/net/eathena/attendancehandler.cpp b/src/net/eathena/attendancehandler.cpp
new file mode 100644
index 000000000..0eef7ea1d
--- /dev/null
+++ b/src/net/eathena/attendancehandler.cpp
@@ -0,0 +1,42 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2018 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "net/eathena/attendancehandler.h"
+
+#include "net/eathena/messageout.h"
+#include "net/eathena/protocolout.h"
+
+#include "debug.h"
+
+namespace EAthena
+{
+
+AttendanceHandler::AttendanceHandler()
+{
+ attendanceHandler = this;
+}
+
+AttendanceHandler::~AttendanceHandler()
+{
+ attendanceHandler = nullptr;
+}
+
+
+} // namespace EAthena
diff --git a/src/net/eathena/attendancehandler.h b/src/net/eathena/attendancehandler.h
new file mode 100644
index 000000000..363c1198c
--- /dev/null
+++ b/src/net/eathena/attendancehandler.h
@@ -0,0 +1,40 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2018 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_EATHENA_ATTENDANCEHANDLER_H
+#define NET_EATHENA_ATTENDANCEHANDLER_H
+
+#include "net/attendancehandler.h"
+
+namespace EAthena
+{
+class AttendanceHandler final : public Net::AttendanceHandler
+{
+ public:
+ AttendanceHandler();
+
+ A_DELETE_COPY(AttendanceHandler)
+
+ ~AttendanceHandler() override final;
+};
+
+} // namespace EAthena
+
+#endif // NET_EATHENA_ATTENDANCEHANDLER_H
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index 4f1d0c086..b2a640dbe 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -34,6 +34,7 @@
#include "net/eathena/adminhandler.h"
#include "net/eathena/auctionhandler.h"
+#include "net/eathena/attendancehandler.h"
#include "net/eathena/bankhandler.h"
#include "net/eathena/battlegroundhandler.h"
#include "net/eathena/beinghandler.h"
@@ -101,6 +102,7 @@ GeneralHandler::GeneralHandler() :
mMail2Handler(new Mail2Handler),
mMailHandler(new MailHandler),
mAuctionHandler(new AuctionHandler),
+ mAttendanceHandler(new AttendanceHandler),
mCashShopHandler(new CashShopHandler),
mFamilyHandler(new FamilyHandler),
mBankHandler(new BankHandler),
@@ -145,6 +147,7 @@ GeneralHandler::~GeneralHandler()
delete2(mMail2Handler);
delete2(mMailHandler);
delete2(mAuctionHandler);
+ delete2(mAttendanceHandler);
delete2(mCashShopHandler);
delete2(mFamilyHandler);
delete2(mBankHandler);
diff --git a/src/net/eathena/generalhandler.h b/src/net/eathena/generalhandler.h
index 8f6dc5166..485670194 100644
--- a/src/net/eathena/generalhandler.h
+++ b/src/net/eathena/generalhandler.h
@@ -48,6 +48,7 @@ class TradeHandler;
class QuestHandler;
class ServerFeatures;
class AuctionHandler;
+class AttendanceHandler;
class BankHandler;
class BattleGroundHandler;
class BuyingStoreHandler;
@@ -115,6 +116,7 @@ class GeneralHandler final : public Net::GeneralHandler
Mail2Handler *mMail2Handler;
MailHandler *mMailHandler;
AuctionHandler *mAuctionHandler;
+ AttendanceHandler *mAttendanceHandler;
CashShopHandler *mCashShopHandler;
FamilyHandler *mFamilyHandler;
BankHandler *mBankHandler;