diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2010-12-27 17:33:41 +0100 |
---|---|---|
committer | Philipp Sehmisch <mana@crushnet.org> | 2010-12-27 17:33:41 +0100 |
commit | a1514113093733b65e36224dad81f6867edcb93c (patch) | |
tree | 2379ed168c9de7f8f6a920dc850210246c79fc5f /src/common | |
parent | 3f559162b2e3cb0b434095d0bac297f67ff53d86 (diff) | |
download | manaserv-a1514113093733b65e36224dad81f6867edcb93c.tar.gz manaserv-a1514113093733b65e36224dad81f6867edcb93c.tar.bz2 manaserv-a1514113093733b65e36224dad81f6867edcb93c.tar.xz manaserv-a1514113093733b65e36224dad81f6867edcb93c.zip |
Transaction logging of various command, new transaction codes and style fix.
The @mute, @goto, @attribute and @announce commands now logs transactions
to the database.
Added new transaction codes to database. I've preliminarily added a lot
of codes for not yet supported commands so that we needn't do a database
update with every single commit which implements one.
Also using the equivalent "say" helper function in place of the
"GameState::sayTo" method in the command handler.
Reviewed-by: Kage
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/transaction.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/common/transaction.h b/src/common/transaction.h index 2715176b..bc5d2a55 100644 --- a/src/common/transaction.h +++ b/src/common/transaction.h @@ -61,7 +61,28 @@ enum TRANS_TRADE_MONEY, TRANS_TRADE_ITEM, TRANS_ATTR_INCREASE, - TRANS_ATTR_DECREASE + TRANS_ATTR_DECREASE, + TRANS_CMD_MUTE, + TRANS_CMD_EXP, + TRANS_CMD_INVISIBLE, + TRANS_CMD_COMBAT, + TRANS_CMD_ANNOUNCE, + TRANS_CMD_LOCALANNOUNCE, + TRANS_CMD_KILL, + TRANS_CMD_FX, + TRANS_CMD_LOG, + TRANS_CMD_KILLMONSTERS, + TRANS_CMD_GOTO, + TRANS_CMD_GONEXT, + TRANS_CMD_GOPREV, + TRANS_CMD_IPBAN, + TRANS_CMD_WIPE_ITEMS, + TRANS_CMD_WIPE_LEVEL, + TRANS_CMD_SHUTDOWN_THIS, + TRANS_CMD_SHUTDOWN_ALL, + TRANS_CMD_RESTART_THIS, + TRANS_CMD_RESTART_ALL, + TRANS_CMD_ATTRIBUTE }; #endif |