summaryrefslogtreecommitdiff
path: root/src/depricatedevent.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-09 17:34:31 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-09 17:34:31 +0300
commitb6ed79b708090b81eddf48c1425f31f5f10c7494 (patch)
treee1ca89292c6ea7209bb8ee324a30d6fc85e9c84c /src/depricatedevent.h
parent834f1f74a3e16c3fa8ccc2593d049a0c3201b659 (diff)
downloadmanaverse-b6ed79b708090b81eddf48c1425f31f5f10c7494.tar.gz
manaverse-b6ed79b708090b81eddf48c1425f31f5f10c7494.tar.bz2
manaverse-b6ed79b708090b81eddf48c1425f31f5f10c7494.tar.xz
manaverse-b6ed79b708090b81eddf48c1425f31f5f10c7494.zip
Remove unused code from depricatedevent class.
Diffstat (limited to 'src/depricatedevent.h')
-rw-r--r--src/depricatedevent.h61
1 files changed, 3 insertions, 58 deletions
diff --git a/src/depricatedevent.h b/src/depricatedevent.h
index 239969c63..1574983c0 100644
--- a/src/depricatedevent.h
+++ b/src/depricatedevent.h
@@ -30,79 +30,29 @@
enum Channels
{
- CHANNEL_ACTORSPRITE = 0,
- CHANNEL_ATTRIBUTES,
- CHANNEL_BUYSELL,
- CHANNEL_CHAT,
+ CHANNEL_ATTRIBUTES = 0,
CHANNEL_CLIENT,
CHANNEL_GAME,
- CHANNEL_ITEM,
CHANNEL_NOTICES,
- CHANNEL_NPC,
- CHANNEL_STATUS,
- CHANNEL_STORAGE
+ CHANNEL_STATUS
};
enum DepricatedEvents
{
- EVENT_ANNOUNCEMENT = 0,
- EVENT_BEING,
- EVENT_CLOSE,
- EVENT_CLOSEALL,
- EVENT_CONSTRUCTED,
- EVENT_DBSLOADING,
- EVENT_DESTROYED,
+ EVENT_CONSTRUCTED = 0,
EVENT_DESTRUCTED,
- EVENT_DESTRUCTING,
- EVENT_DOCLOSE,
- EVENT_DOCLOSEINVENTORY,
- EVENT_DODROP,
- EVENT_DOEQUIP,
- EVENT_DOINTEGERINPUT,
- EVENT_DOMENU,
- EVENT_DOMOVE,
- EVENT_DONEXT,
- EVENT_DOSENDLETTER,
- EVENT_DOSPLIT,
- EVENT_DOSTRINGINPUT,
- EVENT_DOTALK,
- EVENT_DOUNEQUIP,
- EVENT_DOUSE,
- EVENT_END,
EVENT_ENGINESINITALIZED,
EVENT_ENGINESINITALIZING,
EVENT_GUIWINDOWSLOADED,
EVENT_GUIWINDOWSLOADING,
EVENT_GUIWINDOWSUNLOADED,
EVENT_GUIWINDOWSUNLOADING,
- EVENT_INTEGERINPUT,
EVENT_MAPLOADED,
- EVENT_MENU,
- EVENT_MESSAGE,
- EVENT_NEXT,
- EVENT_NPCCOUNT,
- EVENT_PLAYER,
- EVENT_POST,
- EVENT_POSTCOUNT,
EVENT_SERVERNOTICE,
EVENT_STATECHANGE,
- EVENT_STORAGECOUNT,
- EVENT_STRINGINPUT,
- EVENT_STUN,
EVENT_TRADING,
EVENT_UPDATEATTRIBUTE,
EVENT_UPDATESTAT,
- EVENT_UPDATESTATUSEFFECT,
- EVENT_WHISPER,
- EVENT_WHISPERERROR
-};
-
-// Possible exception that can be thrown
-enum BadDepricatedEvent
-{
- BAD_KEY = 0,
- BAD_VALUE,
- KEY_ALREADY_EXISTS
};
class Listener;
@@ -112,11 +62,6 @@ typedef std::map<std::string, VariableData *> VariableMap;
typedef std::set<Listener *> ListenerSet;
typedef std::map<Channels, ListenerSet > ListenMap;
-#define SERVER_NOTICE(message) { \
-DepricatedEvent event(EVENT_SERVERNOTICE); \
-event.setString("message", message); \
-DepricatedEvent::trigger(CHANNEL_NOTICES, event); }
-
class DepricatedEvent final
{
public: