From 7525298b97ce16a177a0f864d4934beae827f4de Mon Sep 17 00:00:00 2001 From: Perize Date: Fri, 25 Jan 2019 22:48:10 +0900 Subject: [PATCH] Mahjong opcodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A very professional, carefully written commit messages™. --- src/common/Network/PacketDef/Ipcs.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/common/Network/PacketDef/Ipcs.h b/src/common/Network/PacketDef/Ipcs.h index 36a46dc5..afded198 100644 --- a/src/common/Network/PacketDef/Ipcs.h +++ b/src/common/Network/PacketDef/Ipcs.h @@ -229,12 +229,17 @@ namespace Sapphire::Network::Packets IPCTYPE_UNK_320 = 0x0253, // updated 4.5 IPCTYPE_UNK_322 = 0x0255, // updated 4.5 - - MahjongTileDiscard = 0x02C1, // Other player discards a tile, chi(1)/pon(2)/kan(4)/ron(8) flags etc.. - MahjongPlayersInfo = 0x02C2, // actor id, name, rating, stuff.. - MahjongOpenGui = 0x02BC, // players must be spawned beforehand - MahjongNextRound = 0x02BD, // initial hands, # of riichi(???), winds, honba #, scores, seats and stuff.. - MahjongTileTsumo = 0x02BE, // Other player tsumo(tile drawn) + /// Doman Mahjong ////////////////////////////////////// + MahjongOpenGui = 0x02BC, // only available in mahjong instance + MahjongNextRound = 0x02BD, // initial hands(baipai), # of riichi(wat), winds, honba, score and stuff + MahjongPlayerAction = 0x02BE, // tsumo(as in drawing a tile) called chi/pon/kan/riichi + MahjongEndRoundTsumo = 0x02BF, // called tsumo + MahjongEndRoundRon = 0x2C0, // called ron or double ron (waiting for action must be flagged from discard packet to call) + MahjongTileDiscard = 0x02C1, // giri (discarding a tile.) chi(1)/pon(2)/kan(4)/ron(8) flags etc.. + MahjongPlayersInfo = 0x02C2, // actor id, name, rating and stuff.. + // 2C3 and 2C4 are currently unknown + MahjongEndRoundDraw = 0x02C5, // self explanatory + MahjongEndGame = 0x02C6, // finished oorasu(all-last) round; shows a result screen. }; /**