Modified:
/trunk/cockpit/src/packet/Registry.cpp
/trunk/cockpit/src/packet/security.cpp
/trunk/include/cockpit/packet/Registry.h
/trunk/protocol/parse.py
=======================================
--- /trunk/cockpit/src/packet/Registry.cpp Sun Jun 27 12:47:56 2010
+++ /trunk/cockpit/src/packet/Registry.cpp Wed Jun 30 18:57:06 2010
@@ -97,9 +97,9 @@
Match_Login(bind(do_nothing_4< const std::string&, const std::string&,
boost::int32_t, boost::uint32_t >, nothing_info(this, 994), _1, _2, _3,
_4)),
Match_LoginNetmarble(bind(do_nothing_4< const std::string&, const
std::string&, boost::int32_t, boost::uint32_t >, nothing_info(this, 1003),
_1, _2, _3, _4)),
MC_MATCH_DISCONNMSG(bind(do_nothing_1< boost::uint32_t >,
nothing_info(this, 1010), _1)),
- MC_MATCH_LOGIN_NHNUSA(bind(do_nothing_5< const std::string&, const
std::string&, boost::int32_t, boost::uint32_t, boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */> >, nothing_info(this, 1011), _1,
_2, _3, _4, _5)),
- MC_MATCH_LOGIN_GAMEON_JP(bind(do_nothing_5< const std::string&, const
std::string&, boost::int32_t, boost::uint32_t, boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */> >, nothing_info(this, 1012), _1,
_2, _3, _4, _5)),
- Match_ObjectCache(bind(do_nothing_2< boost::uint8_t, boost::tuple<Buffer
/* data */, size_t /* count */, size_t /* size */> >, nothing_info(this,
1101), _1, _2)),
+ MC_MATCH_LOGIN_NHNUSA(bind(do_nothing_5< const std::string&, const
std::string&, boost::int32_t, boost::uint32_t, const boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
1011), _1, _2, _3, _4, _5)),
+ MC_MATCH_LOGIN_GAMEON_JP(bind(do_nothing_5< const std::string&, const
std::string&, boost::int32_t, boost::uint32_t, const boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
1012), _1, _2, _3, _4, _5)),
+ Match_ObjectCache(bind(do_nothing_2< boost::uint8_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& >,
nothing_info(this, 1101), _1, _2)),
Match_BridgePeer(bind(do_nothing_3< boost::uint64_t, boost::uint32_t,
boost::uint32_t >, nothing_info(this, 1006), _1, _2, _3)),
Match_BridgePeerACK(bind(do_nothing_2< boost::uint64_t, boost::int32_t >,
nothing_info(this, 1007), _1, _2)),
MatchServer_RequestRecommandedChannel(bind(do_nothing_0,
nothing_info(this, 1201))),
@@ -108,7 +108,7 @@
Channel_Leave(bind(do_nothing_2< boost::uint64_t, boost::uint64_t >,
nothing_info(this, 1208), _1, _2)),
Channel_ListStart(bind(do_nothing_3< boost::uint64_t, boost::int32_t,
boost::int32_t >, nothing_info(this, 1211), _1, _2, _3)),
Channel_ListStop(bind(do_nothing_1< boost::uint64_t >, nothing_info(this,
1212), _1)),
- Channel_List(bind(do_nothing_1< boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */> >, nothing_info(this, 1213), _1)),
+ Channel_List(bind(do_nothing_1< const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>& >, nothing_info(this, 1213), _1)),
Channel_Request_Chat(bind(do_nothing_3< boost::uint64_t, boost::uint64_t,
const std::string& >, nothing_info(this, 1225), _1, _2, _3)),
Channel_Chat(bind(do_nothing_4< boost::uint64_t, const std::string&,
const std::string&, boost::int32_t >, nothing_info(this, 1226), _1, _2, _3,
_4)),
Channel_Request_Rule(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 1230), _1)),
@@ -123,23 +123,23 @@
Stage_RequirePassword(bind(do_nothing_2< boost::uint64_t, const
std::string& >, nothing_info(this, 1332), _1, _2)),
RequestGameInfo(bind(do_nothing_2< boost::uint64_t, boost::uint64_t >,
nothing_info(this, 1451), _1, _2)),
Stage_Request_EnterBattle(bind(do_nothing_2< boost::uint64_t,
boost::uint64_t >, nothing_info(this, 1401), _1, _2)),
- Stage_EnterBattle(bind(do_nothing_2< boost::uint8_t, boost::tuple<Buffer
/* data */, size_t /* count */, size_t /* size */> >, nothing_info(this,
1402), _1, _2)),
+ Stage_EnterBattle(bind(do_nothing_2< boost::uint8_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& >,
nothing_info(this, 1402), _1, _2)),
Stage_LeaveBattle(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 1403), _1)),
Stage_Start(bind(do_nothing_3< boost::uint64_t, boost::uint64_t,
boost::int32_t >, nothing_info(this, 1431), _1, _2, _3)),
Stage_Map(bind(do_nothing_2< boost::uint64_t, const std::string& >,
nothing_info(this, 1414), _1, _2)),
Stage_Chat(bind(do_nothing_3< boost::uint64_t, boost::uint64_t, const
std::string& >, nothing_info(this, 1321), _1, _2, _3)),
- Stage_RequestQuickJoin(bind(do_nothing_2< boost::uint64_t,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> >,
nothing_info(this, 1322), _1, _2)),
+ Stage_RequestQuickJoin(bind(do_nothing_2< boost::uint64_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& >,
nothing_info(this, 1322), _1, _2)),
Stage_StageGo(bind(do_nothing_1< boost::uint32_t >, nothing_info(this,
1331), _1)),
Stage_State(bind(do_nothing_4< boost::uint64_t, boost::uint64_t,
boost::int32_t, boost::int32_t >, nothing_info(this, 1422), _1, _2, _3,
_4)),
Stage_Team(bind(do_nothing_3< boost::uint64_t, boost::uint64_t,
boost::uint32_t >, nothing_info(this, 1423), _1, _2, _3)),
Stage_Master(bind(do_nothing_2< boost::uint64_t, boost::uint64_t >,
nothing_info(this, 1421), _1, _2)),
Stage_ListStart(bind(do_nothing_0, nothing_info(this, 1312))),
Stage_ListStop(bind(do_nothing_0, nothing_info(this, 1313))),
- Stage_List(bind(do_nothing_3< boost::int8_t, boost::int8_t,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> >,
nothing_info(this, 1314), _1, _2, _3)),
+ Stage_List(bind(do_nothing_3< boost::int8_t, boost::int8_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& >,
nothing_info(this, 1314), _1, _2, _3)),
Stage_RequestStageList(bind(do_nothing_3< boost::uint64_t,
boost::uint64_t, boost::int32_t >, nothing_info(this, 1311), _1, _2, _3)),
Channel_RequestPlayerList(bind(do_nothing_3< boost::uint64_t,
boost::uint64_t, boost::int32_t >, nothing_info(this, 1221), _1, _2, _3)),
Stage_RequestStageSetting(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 1411), _1)),
- Stage_StageSetting(bind(do_nothing_3< boost::uint64_t, boost::uint64_t,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> >,
nothing_info(this, 1413), _1, _2, _3)),
+ Stage_StageSetting(bind(do_nothing_3< boost::uint64_t, boost::uint64_t,
const boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size
*/>& >, nothing_info(this, 1413), _1, _2, _3)),
Stage_Launch(bind(do_nothing_2< boost::uint64_t, const std::string& >,
nothing_info(this, 1432), _1, _2)),
Stage_Finish(bind(do_nothing_1< boost::uint64_t >, nothing_info(this,
1442), _1)),
Stage_RequestPeerList(bind(do_nothing_2< boost::uint64_t, boost::uint64_t
>, nothing_info(this, 1461), _1, _2)),
@@ -155,7 +155,7 @@
Game_RequestTimeSync(bind(do_nothing_1< boost::uint32_t >,
nothing_info(this, 1521), _1)),
Game_ReportTimeSync(bind(do_nothing_2< boost::uint32_t, boost::uint32_t
>, nothing_info(this, 1523), _1, _2)),
Stage_RequestForcedEntry(bind(do_nothing_2< boost::uint64_t,
boost::uint64_t >, nothing_info(this, 1415), _1, _2)),
- Stage_RoundFinishInfo(bind(do_nothing_4< boost::uint64_t,
boost::uint64_t, boost::tuple<Buffer /* data */, size_t /* count */, size_t
/* size */>, boost::tuple<Buffer /* data */, size_t /* count */, size_t /*
size */> >, nothing_info(this, 1502), _1, _2, _3, _4)),
+ Stage_RoundFinishInfo(bind(do_nothing_4< boost::uint64_t,
boost::uint64_t, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>&, const boost::tuple<Buffer /* data */, size_t /* count
*/, size_t /* size */>& >, nothing_info(this, 1502), _1, _2, _3, _4)),
Match_Notify(bind(do_nothing_1< boost::uint32_t >, nothing_info(this,
401), _1)),
Match_Whisper(bind(do_nothing_3< const std::string&, const std::string&,
const std::string& >, nothing_info(this, 1601), _1, _2, _3)),
Match_Where(bind(do_nothing_1< const std::string& >, nothing_info(this,
1602), _1)),
@@ -166,7 +166,7 @@
ChatRoom_SelectWrite(bind(do_nothing_1< const std::string& >,
nothing_info(this, 1665), _1)),
ChatRoom_Invite(bind(do_nothing_3< const std::string&, const
std::string&, const std::string& >, nothing_info(this, 1661), _1, _2, _3)),
ChatRoom_Chat(bind(do_nothing_3< const std::string&, const std::string&,
const std::string& >, nothing_info(this, 1662), _1, _2, _3)),
- Match_RequestAccountCharList(bind(do_nothing_1< boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */> >, nothing_info(this,
1701), _1)),
+ Match_RequestAccountCharList(bind(do_nothing_1< const boost::tuple<Buffer
/* data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
1701), _1)),
Match_RequestAccountCharInfo(bind(do_nothing_1< boost::int8_t >,
nothing_info(this, 1719), _1)),
Match_RequestSelectChar(bind(do_nothing_2< boost::uint64_t,
boost::uint32_t >, nothing_info(this, 1703), _1, _2)),
Match_RequestCharInfo(bind(do_nothing_2< boost::uint64_t, boost::uint32_t
>, nothing_info(this, 1705), _1, _2)),
@@ -182,26 +182,26 @@
Match_RequestAccountItemList(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 1831), _1)),
Match_RequestBringAccountItem(bind(do_nothing_2< boost::uint64_t,
boost::int32_t >, nothing_info(this, 1833), _1, _2)),
Match_RequestBringBackAccountItem(bind(do_nothing_2< boost::uint64_t,
boost::uint64_t >, nothing_info(this, 1835), _1, _2)),
- Match_ExpiredRentItem(bind(do_nothing_1< boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */> >, nothing_info(this, 1837), _1)),
+ Match_ExpiredRentItem(bind(do_nothing_1< const boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
1837), _1)),
Match_ItemGamble(bind(do_nothing_1< boost::uint64_t >, nothing_info(this,
1841), _1)),
Match_GambleResultItem(bind(do_nothing_2< boost::uint32_t,
boost::uint32_t >, nothing_info(this, 1842), _1, _2)),
Match_Request_Suicide(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 1531), _1)),
Match_Request_Obtain_WorldItem(bind(do_nothing_2< boost::uint64_t,
boost::int32_t >, nothing_info(this, 1541), _1, _2)),
Match_WorldItem_Obtain(bind(do_nothing_2< boost::uint64_t, boost::int32_t
>, nothing_info(this, 1542), _1, _2)),
- Match_WorldItem_Spawn(bind(do_nothing_1< boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */> >, nothing_info(this, 1543), _1)),
+ Match_WorldItem_Spawn(bind(do_nothing_1< const boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
1543), _1)),
Match_Request_Spawn_WorldItem(bind(do_nothing_4< boost::uint64_t,
boost::int32_t, const boost::array<float, 3>&, float >, nothing_info(this,
1544), _1, _2, _3, _4)),
Match_Request_Spawn_WorldItem_UID(bind(do_nothing_1< boost::int32_t >,
nothing_info(this, 1545), _1)),
- Match_Reset_TeamMembers(bind(do_nothing_1< boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */> >, nothing_info(this, 1552),
_1)),
+ Match_Reset_TeamMembers(bind(do_nothing_1< const boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
1552), _1)),
Match_Assign_Commander(bind(do_nothing_2< boost::uint64_t,
boost::uint64_t >, nothing_info(this, 1551), _1, _2)),
Match_Set_Observer(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 1553), _1)),
- Match_Ladder_Request_Challenge(bind(do_nothing_3< boost::int32_t,
boost::uint32_t, boost::tuple<Buffer /* data */, size_t /* count */, size_t
/* size */> >, nothing_info(this, 1571), _1, _2, _3)),
+ Match_Ladder_Request_Challenge(bind(do_nothing_3< boost::int32_t,
boost::uint32_t, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>& >, nothing_info(this, 1571), _1, _2, _3)),
Match_Ladder_SearchRival(bind(do_nothing_0, nothing_info(this, 1574))),
Match_Ladder_Request_CancelChallenge(bind(do_nothing_0,
nothing_info(this, 1575))),
Match_Ladder_CancelChallenge(bind(do_nothing_1< const std::string& >,
nothing_info(this, 1576), _1)),
Ladder_Prepare(bind(do_nothing_2< boost::uint64_t, boost::int32_t >,
nothing_info(this, 1578), _1, _2)),
Ladder_Launch(bind(do_nothing_2< boost::uint64_t, const std::string& >,
nothing_info(this, 1579), _1, _2)),
- Match_RequestProposal(bind(do_nothing_5< boost::uint64_t, boost::int32_t,
boost::int32_t, boost::int32_t, boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */> >, nothing_info(this, 1561), _1, _2, _3, _4,
_5)),
- Match_AskAgreement(bind(do_nothing_4< boost::uint64_t,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>,
boost::int32_t, boost::int32_t >, nothing_info(this, 1563), _1, _2, _3,
_4)),
+ Match_RequestProposal(bind(do_nothing_5< boost::uint64_t, boost::int32_t,
boost::int32_t, boost::int32_t, const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>& >, nothing_info(this, 1561), _1,
_2, _3, _4, _5)),
+ Match_AskAgreement(bind(do_nothing_4< boost::uint64_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>&,
boost::int32_t, boost::int32_t >, nothing_info(this, 1563), _1, _2, _3,
_4)),
Match_ReplyAgreement(bind(do_nothing_6< boost::uint64_t, boost::uint64_t,
const std::string&, boost::int32_t, boost::int32_t, bool >,
nothing_info(this, 1564), _1, _2, _3, _4, _5, _6)),
Match_Friend_Add(bind(do_nothing_1< const std::string& >,
nothing_info(this, 1901), _1)),
Match_Friend_Remove(bind(do_nothing_1< const std::string& >,
nothing_info(this, 1902), _1)),
@@ -217,16 +217,16 @@
Match_Clan_AnswerJoinAgreement(bind(do_nothing_3< boost::uint64_t, const
std::string&, bool >, nothing_info(this, 2011), _1, _2, _3)),
Match_Clan_RequestAgreedJoinClan(bind(do_nothing_3< boost::uint64_t,
const std::string&, const std::string& >, nothing_info(this, 2012), _1, _2,
_3)),
Match_Clan_RequestLeaveClan(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 2014), _1)),
- Match_Clan_UpdateCharClanInfo(bind(do_nothing_1< boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */> >, nothing_info(this,
2016), _1)),
+ Match_Clan_UpdateCharClanInfo(bind(do_nothing_1< const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& >,
nothing_info(this, 2016), _1)),
Match_Clan_Master_RequestChangeGrade(bind(do_nothing_4< boost::uint64_t,
const std::string&, boost::int32_t, boost::int32_t >, nothing_info(this,
2017), _1, _2, _3, _4)),
Match_Clan_Admin_RequestExpelMember(bind(do_nothing_2< boost::uint64_t,
const std::string& >, nothing_info(this, 2019), _1, _2)),
Match_Clan_Request_Msg(bind(do_nothing_2< boost::uint64_t, const
std::string& >, nothing_info(this, 2021), _1, _2)),
Match_Clan_Msg(bind(do_nothing_2< const std::string&, const std::string&
>, nothing_info(this, 2022), _1, _2)),
Match_Clan_Request_ClanMemberList(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 2023), _1)),
Match_Clan_Request_Clan_Info(bind(do_nothing_2< boost::uint64_t, const
std::string& >, nothing_info(this, 2025), _1, _2)),
- Match_Clan_Standby_ClanList(bind(do_nothing_3< boost::int32_t,
boost::int32_t, boost::tuple<Buffer /* data */, size_t /* count */, size_t
/* size */> >, nothing_info(this, 2027), _1, _2, _3)),
+ Match_Clan_Standby_ClanList(bind(do_nothing_3< boost::int32_t,
boost::int32_t, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>& >, nothing_info(this, 2027), _1, _2, _3)),
Match_Clan_Member_Connected(bind(do_nothing_1< const std::string& >,
nothing_info(this, 2028), _1)),
- Match_Clan_Request_EmblemURL(bind(do_nothing_1< boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */> >, nothing_info(this,
2051), _1)),
+ Match_Clan_Request_EmblemURL(bind(do_nothing_1< const boost::tuple<Buffer
/* data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
2051), _1)),
Match_Clan_Local_EmblemReady(bind(do_nothing_2< boost::int32_t, const
std::string& >, nothing_info(this, 2055), _1, _2)),
MC_MATCH_CLAN_ACCOUNCE_DELETE(bind(do_nothing_1< const std::string& >,
nothing_info(this, 2056), _1)),
Match_Callvote(bind(do_nothing_2< const std::string&, const std::string&
>, nothing_info(this, 2100), _1, _2)),
@@ -240,10 +240,10 @@
Match_Broadcast_DuelRenewVictories(bind(do_nothing_4< const std::string&,
const std::string&, boost::int32_t, boost::int32_t >, nothing_info(this,
2202), _1, _2, _3, _4)),
Match_Broadcast_DuelInterruptVictories(bind(do_nothing_3< const
std::string&, const std::string&, boost::int32_t >, nothing_info(this,
2203), _1, _2, _3)),
Match_Assign_Berserker(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 3001), _1)),
- Match_Duel_QueueInfo(bind(do_nothing_1< boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */> >, nothing_info(this, 3100), _1)),
+ Match_Duel_QueueInfo(bind(do_nothing_1< const boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */>& >, nothing_info(this, 3100),
_1)),
Match_Quest_Ping(bind(do_nothing_1< boost::uint32_t >, nothing_info(this,
6012), _1)),
Match_Quest_Pong(bind(do_nothing_1< boost::uint32_t >, nothing_info(this,
6013), _1)),
- MC_QUEST_NPCLIST(bind(do_nothing_2< boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>, boost::int32_t >,
nothing_info(this, 6014), _1, _2)),
+ MC_QUEST_NPCLIST(bind(do_nothing_2< const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>&, boost::int32_t >,
nothing_info(this, 6014), _1, _2)),
Event_ChangeMaster(bind(do_nothing_0, nothing_info(this, 601))),
Event_ChangePassword(bind(do_nothing_1< const std::string& >,
nothing_info(this, 602), _1)),
Event_RequestJJang(bind(do_nothing_1< const std::string& >,
nothing_info(this, 611), _1)),
@@ -263,18 +263,18 @@
Quest_State_Mapset(bind(do_nothing_2< boost::uint64_t, boost::int8_t >,
nothing_info(this, 6010), _1, _2)),
Quest_Stage_GameInfo(bind(do_nothing_3< boost::int8_t, boost::int8_t,
boost::uint32_t >, nothing_info(this, 6061), _1, _2, _3)),
Quest_SectorBonus(bind(do_nothing_3< boost::uint64_t, boost::uint32_t,
boost::uint32_t >, nothing_info(this, 6062), _1, _2, _3)),
- Quest_GameInfo(bind(do_nothing_1< boost::tuple<Buffer /* data */, size_t
/* count */, size_t /* size */> >, nothing_info(this, 6051), _1)),
+ Quest_GameInfo(bind(do_nothing_1< const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>& >, nothing_info(this, 6051), _1)),
Quest_Combat_State(bind(do_nothing_1< boost::int8_t >, nothing_info(this,
6052), _1)),
Quest_Sector_Start(bind(do_nothing_2< boost::int8_t, boost::uint8_t >,
nothing_info(this, 6053), _1, _2)),
- Quest_Complete(bind(do_nothing_1< boost::tuple<Buffer /* data */, size_t
/* count */, size_t /* size */> >, nothing_info(this, 6054), _1)),
+ Quest_Complete(bind(do_nothing_1< const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>& >, nothing_info(this, 6054), _1)),
Quest_Failed(bind(do_nothing_0, nothing_info(this, 6055))),
Quest_Request_Moveto_Portal(bind(do_nothing_1< boost::int8_t >,
nothing_info(this, 6057), _1)),
Quest_Moveto_Portal(bind(do_nothing_3< boost::int8_t, boost::uint8_t,
boost::uint64_t >, nothing_info(this, 6058), _1, _2, _3)),
Quest_Readyto_NewSector(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 6059), _1)),
- Quest_Peer_NPC_BasicInfo(bind(do_nothing_1< boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */> >, nothing_info(this, 6040),
_1)),
- Quest_Peer_NPC_HPInfo(bind(do_nothing_2< boost::int32_t,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> >,
nothing_info(this, 6041), _1, _2)),
+ Quest_Peer_NPC_BasicInfo(bind(do_nothing_1< const boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
6040), _1)),
+ Quest_Peer_NPC_HPInfo(bind(do_nothing_2< boost::int32_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& >,
nothing_info(this, 6041), _1, _2)),
Quest_Peer_NPC_Attack_Melee(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 6042), _1)),
- Quest_Peer_NPC_Attack_Range(bind(do_nothing_2< boost::uint64_t,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> >,
nothing_info(this, 6043), _1, _2)),
+ Quest_Peer_NPC_Attack_Range(bind(do_nothing_2< boost::uint64_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& >,
nothing_info(this, 6043), _1, _2)),
Quest_Peer_NPC_Skill_Start(bind(do_nothing_4< boost::uint64_t,
boost::int32_t, boost::uint64_t, const boost::array<float, 3>& >,
nothing_info(this, 6044), _1, _2, _3, _4)),
Quest_Peer_NPC_Skill_Execute(bind(do_nothing_4< boost::uint64_t,
boost::int32_t, boost::uint64_t, const boost::array<float, 3>& >,
nothing_info(this, 6045), _1, _2, _3, _4)),
Quest_Peer_NPC_Dead(bind(do_nothing_2< boost::uint64_t, boost::uint64_t
>, nothing_info(this, 6046), _1, _2)),
@@ -298,12 +298,12 @@
Agent_StageReady(bind(do_nothing_1< boost::uint64_t >, nothing_info(this,
5053), _1)),
Agent_RelayPeer(bind(do_nothing_3< boost::uint64_t, boost::uint64_t,
boost::uint64_t >, nothing_info(this, 5062), _1, _2, _3)),
Questitem(bind(do_nothing_1< boost::uint64_t >, nothing_info(this,
21000), _1)),
- Quest_item_response(bind(do_nothing_1< boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */> >, nothing_info(this, 21001), _1)),
+ Quest_item_response(bind(do_nothing_1< const boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */>& >, nothing_info(this, 21001),
_1)),
Quest_item_buy(bind(do_nothing_2< boost::uint64_t, boost::int32_t >,
nothing_info(this, 21002), _1, _2)),
Quest_item_responsebuy(bind(do_nothing_2< boost::int32_t, boost::int32_t
>, nothing_info(this, 21003), _1, _2)),
Quest_item_sell(bind(do_nothing_3< boost::uint64_t, boost::int32_t,
boost::int32_t >, nothing_info(this, 21004), _1, _2, _3)),
Quest_item_responsesell(bind(do_nothing_2< boost::int32_t, boost::int32_t
>, nothing_info(this, 21005), _1, _2)),
- Quest_Reward(bind(do_nothing_4< boost::int32_t, boost::int32_t,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> >,
nothing_info(this, 21006), _1, _2, _3, _4)),
+ Quest_Reward(bind(do_nothing_4< boost::int32_t, boost::int32_t, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>&,
const boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size
*/>& >, nothing_info(this, 21006), _1, _2, _3, _4)),
Quest_Request_Sacrifice(bind(do_nothing_3< boost::uint64_t,
boost::int32_t, boost::int32_t >, nothing_info(this, 21007), _1, _2, _3)),
Quest_Callback_Sacrifice(bind(do_nothing_3< boost::uint64_t,
boost::int32_t, boost::int32_t >, nothing_info(this, 21009), _1, _2, _3)),
Quest_Callback_Result(bind(do_nothing_4< boost::int32_t, boost::uint64_t,
boost::int32_t, boost::int32_t >, nothing_info(this, 21010), _1, _2, _3,
_4)),
@@ -311,13 +311,13 @@
Quest_Resonse_SlotInfo(bind(do_nothing_4< boost::uint64_t,
boost::int32_t, boost::uint64_t, boost::int32_t >, nothing_info(this,
21012), _1, _2, _3, _4)),
Quest_RequestLevel(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 6101), _1)),
Quest_Survival_Result(bind(do_nothing_2< boost::int32_t, boost::int32_t
>, nothing_info(this, 6103), _1, _2)),
- Quest_Survival_Ranking(bind(do_nothing_1< boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */> >, nothing_info(this, 6104), _1)),
+ Quest_Survival_Ranking(bind(do_nothing_1< const boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
6104), _1)),
Quest_Survuval_PrivateRanking(bind(do_nothing_2< boost::uint32_t,
boost::uint32_t >, nothing_info(this, 6105), _1, _2)),
Quest_Start_Fail(bind(do_nothing_2< boost::int32_t, boost::uint64_t >,
nothing_info(this, 6060), _1, _2)),
monsterinfo(bind(do_nothing_1< boost::int8_t >, nothing_info(this,
21013), _1)),
Quest_Bible_Request(bind(do_nothing_1< boost::uint64_t >,
nothing_info(this, 21014), _1)),
MC_REQUEST_GIVE_ONESELF_UP(bind(do_nothing_0, nothing_info(this, 9101))),
- MC_RESPONSE_GAMBLEITEMLIST(bind(do_nothing_1< boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */> >, nothing_info(this, 1827),
_1)),
+ MC_RESPONSE_GAMBLEITEMLIST(bind(do_nothing_1< const boost::tuple<Buffer
/* data */, size_t /* count */, size_t /* size */>& >, nothing_info(this,
1827), _1)),
MC_MATCH_ROUTE_UPDATE_STAGE_EQUIP_LOOK(bind(do_nothing_3<
boost::uint64_t, boost::int32_t, boost::int32_t >, nothing_info(this,
1828), _1, _2, _3)),
MC_REQUEST_RESOURCE_CRC32(bind(do_nothing_1< boost::uint32_t >,
nothing_info(this, 11001), _1)),
MC_RESPONSE_RESOURCE_CRC32(bind(do_nothing_1< boost::uint32_t >,
nothing_info(this, 12002), _1))
=======================================
--- /trunk/cockpit/src/packet/security.cpp Wed Jun 30 16:20:06 2010
+++ /trunk/cockpit/src/packet/security.cpp Wed Jun 30 18:57:06 2010
@@ -1,7 +1,9 @@
#include <boost/cstdint.hpp>
#include <boost/array.hpp>
#include <boost/tuple/tuple.hpp>
+
#include <string>
+
#include <util/buffer.h>
using namespace std;
=======================================
--- /trunk/include/cockpit/packet/Registry.h Sun Jun 27 12:47:56 2010
+++ /trunk/include/cockpit/packet/Registry.h Wed Jun 30 18:57:06 2010
@@ -62,13 +62,13 @@
boost::function<void (boost::uint32_t /* messageid */)>
MC_MATCH_DISCONNMSG;
// Login from nhn usa.
- boost::function<void (const std::string& /* UserID */, const std::string&
/* szAuthStr */, boost::int32_t /* CommandVersion */, boost::uint32_t /*
nChecksumPack */, boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* EncryptMD5Value */)> MC_MATCH_LOGIN_NHNUSA;
+ boost::function<void (const std::string& /* UserID */, const std::string&
/* szAuthStr */, boost::int32_t /* CommandVersion */, boost::uint32_t /*
nChecksumPack */, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>& /* EncryptMD5Value */)> MC_MATCH_LOGIN_NHNUSA;
// Login from GameOn Japan
- boost::function<void (const std::string& /* szString */, const
std::string& /* szStatIndex */, boost::int32_t /* CommandVersion */,
boost::uint32_t /* nChecksumPack */, boost::tuple<Buffer /* data */, size_t
/* count */, size_t /* size */> /* EncryptMD5Value */)>
MC_MATCH_LOGIN_GAMEON_JP;
+ boost::function<void (const std::string& /* szString */, const
std::string& /* szStatIndex */, boost::int32_t /* CommandVersion */,
boost::uint32_t /* nChecksumPack */, const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>& /* EncryptMD5Value */)>
MC_MATCH_LOGIN_GAMEON_JP;
// Match Object Cache
- boost::function<void (boost::uint8_t /* Type */, boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */> /* ObjectCache */)>
Match_ObjectCache;
+ boost::function<void (boost::uint8_t /* Type */, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& /*
ObjectCache */)> Match_ObjectCache;
// Match BridgePeer
boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint32_t /*
dwIP */, boost::uint32_t /* nPort */)> Match_BridgePeer;
@@ -95,7 +95,7 @@
boost::function<void (boost::uint64_t /* uidPlayer */)> Channel_ListStop;
// Channel List
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* ChannelList */)> Channel_List;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* ChannelList */)> Channel_List;
// Request Chat to Channel
boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint64_t /*
uidChannel */, const std::string& /* Chat */)> Channel_Request_Chat;
@@ -140,7 +140,7 @@
boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint64_t /*
uidStage */)> Stage_Request_EnterBattle;
// Enter Stage Battle
- boost::function<void (boost::uint8_t /* Param */, boost::tuple<Buffer /*
data */, size_t /* count */, size_t /* size */> /* CharData */)>
Stage_EnterBattle;
+ boost::function<void (boost::uint8_t /* Param */, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& /*
CharData */)> Stage_EnterBattle;
// Leave Stage Battle
boost::function<void (boost::uint64_t /* uidPlayer */)> Stage_LeaveBattle;
@@ -155,7 +155,7 @@
boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint64_t /*
uidStage */, const std::string& /* Chat */)> Stage_Chat;
// Stage Request QuickJoin
- boost::function<void (boost::uint64_t /* uidPlayer */,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> /*
Param */)> Stage_RequestQuickJoin;
+ boost::function<void (boost::uint64_t /* uidPlayer */, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& /*
Param */)> Stage_RequestQuickJoin;
// Stage Go
boost::function<void (boost::uint32_t /* RoomNo */)> Stage_StageGo;
@@ -176,7 +176,7 @@
boost::function<void ()> Stage_ListStop;
// Stage List
- boost::function<void (boost::int8_t /* PrevStageListCount */,
boost::int8_t /* NextStageListCount */, boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */> /* StageList */)> Stage_List;
+ boost::function<void (boost::int8_t /* PrevStageListCount */,
boost::int8_t /* NextStageListCount */, const boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */>& /* StageList */)> Stage_List;
// Request Stage List
boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint64_t /*
uidChannel */, boost::int32_t /* StageCursor */)> Stage_RequestStageList;
@@ -188,7 +188,7 @@
boost::function<void (boost::uint64_t /* uidStage */)>
Stage_RequestStageSetting;
// Setting up Stage
- boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint64_t /*
uidStage */, boost::tuple<Buffer /* data */, size_t /* count */, size_t /*
size */> /* StageSetting */)> Stage_StageSetting;
+ boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint64_t /*
uidStage */, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>& /* StageSetting */)> Stage_StageSetting;
// Launch Stage
boost::function<void (boost::uint64_t /* uidStage */, const std::string&
/* MapName */)> Stage_Launch;
@@ -236,7 +236,7 @@
boost::function<void (boost::uint64_t /* uidChar */, boost::uint64_t /*
uidStage */)> Stage_RequestForcedEntry;
// Update Round Finished Info
- boost::function<void (boost::uint64_t /* uidStage */, boost::uint64_t /*
uidChar */, boost::tuple<Buffer /* data */, size_t /* count */, size_t /*
size */> /* PeerInfo */, boost::tuple<Buffer /* data */, size_t /* count
*/, size_t /* size */> /* KillInfo */)> Stage_RoundFinishInfo;
+ boost::function<void (boost::uint64_t /* uidStage */, boost::uint64_t /*
uidChar */, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>& /* PeerInfo */, const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>& /* KillInfo */)>
Stage_RoundFinishInfo;
// Notify Message
boost::function<void (boost::uint32_t /* nMsgID */)> Match_Notify;
@@ -269,7 +269,7 @@
boost::function<void (const std::string& /* ChatRoomName */, const
std::string& /* SenderName */, const std::string& /* Message */)>
ChatRoom_Chat;
// Request Account Character List
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* EMsg */)> Match_RequestAccountCharList;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* EMsg */)> Match_RequestAccountCharList;
// Request Account Character Info
boost::function<void (boost::int8_t /* CharNum */)>
Match_RequestAccountCharInfo;
@@ -317,7 +317,7 @@
boost::function<void (boost::uint64_t /* uidChar */, boost::uint64_t /*
uidItem */)> Match_RequestBringBackAccountItem;
// Match.Expired Rent Item
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* ItemIDList */)> Match_ExpiredRentItem;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* ItemIDList */)> Match_ExpiredRentItem;
// Request Item Gamble
boost::function<void (boost::uint64_t /* uidItem */)> Match_ItemGamble;
@@ -335,7 +335,7 @@
boost::function<void (boost::uint64_t /* uidChar */, boost::int32_t /*
nItemUID */)> Match_WorldItem_Obtain;
// Spawn WorldItem
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* SpawnInfo */)> Match_WorldItem_Spawn;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* SpawnInfo */)> Match_WorldItem_Spawn;
// Request Spawn WorldItem
boost::function<void (boost::uint64_t /* uidChar */, boost::int32_t /*
ItemID */, const boost::array<float, 3>& /* ItemPos */, float /*
ItemDropDelayTime */)> Match_Request_Spawn_WorldItem;
@@ -344,7 +344,7 @@
boost::function<void (boost::int32_t /* nWorldItemUID */)>
Match_Request_Spawn_WorldItem_UID;
// Reset Team Members
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* TeamMemberData */)> Match_Reset_TeamMembers;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* TeamMemberData */)>
Match_Reset_TeamMembers;
// Assign Commander
boost::function<void (boost::uint64_t /* uidRedCommander */,
boost::uint64_t /* uidBlueCommander */)> Match_Assign_Commander;
@@ -353,7 +353,7 @@
boost::function<void (boost::uint64_t /* uidChar */)> Match_Set_Observer;
// Request Challenge a Ladder
- boost::function<void (boost::int32_t /* MemberCount */, boost::uint32_t
/* Options */, boost::tuple<Buffer /* data */, size_t /* count */, size_t
/* size */> /* MemberNames */)> Match_Ladder_Request_Challenge;
+ boost::function<void (boost::int32_t /* MemberCount */, boost::uint32_t
/* Options */, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>& /* MemberNames */)> Match_Ladder_Request_Challenge;
// Search a Ladder Rival
boost::function<void ()> Match_Ladder_SearchRival;
@@ -371,10 +371,10 @@
boost::function<void (boost::uint64_t /* uidStage */, const std::string&
/* MapName */)> Ladder_Launch;
// Request Proposal
- boost::function<void (boost::uint64_t /* uidChar */, boost::int32_t /*
ProposalMode */, boost::int32_t /* RequestID */, boost::int32_t /*
ReplierCount */, boost::tuple<Buffer /* data */, size_t /* count */, size_t
/* size */> /* ReplierCharNames */)> Match_RequestProposal;
+ boost::function<void (boost::uint64_t /* uidChar */, boost::int32_t /*
ProposalMode */, boost::int32_t /* RequestID */, boost::int32_t /*
ReplierCount */, const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>& /* ReplierCharNames */)> Match_RequestProposal;
// Ask Agreement
- boost::function<void (boost::uint64_t /* uidProposer */,
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */> /*
MembersCharName */, boost::int32_t /* ProposalMode */, boost::int32_t /*
RequestID */)> Match_AskAgreement;
+ boost::function<void (boost::uint64_t /* uidProposer */, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& /*
MembersCharName */, boost::int32_t /* ProposalMode */, boost::int32_t /*
RequestID */)> Match_AskAgreement;
// Reply Agreement
boost::function<void (boost::uint64_t /* uidProposer */, boost::uint64_t
/* uidChar */, const std::string& /* Replier */, boost::int32_t /*
ProposalMode */, boost::int32_t /* RequestID */, bool /* Agreement */)>
Match_ReplyAgreement;
@@ -422,7 +422,7 @@
boost::function<void (boost::uint64_t /* uidChar */)>
Match_Clan_RequestLeaveClan;
// Update Char ClanInfo
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* ClanInfo */)> Match_Clan_UpdateCharClanInfo;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* ClanInfo */)>
Match_Clan_UpdateCharClanInfo;
// Request Change ClanGrade
boost::function<void (boost::uint64_t /* uidClanMaster */, const
std::string& /* szMember */, boost::int32_t /* Grade */, boost::int32_t /*
zero */)> Match_Clan_Master_RequestChangeGrade;
@@ -443,13 +443,13 @@
boost::function<void (boost::uint64_t /* uidChar */, const std::string&
/* ClanName */)> Match_Clan_Request_Clan_Info;
// Standby Clan List
- boost::function<void (boost::int32_t /* PrevClanListCount */,
boost::int32_t /* NextClanListCount */, boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */> /* ClanList */)>
Match_Clan_Standby_ClanList;
+ boost::function<void (boost::int32_t /* PrevClanListCount */,
boost::int32_t /* NextClanListCount */, const boost::tuple<Buffer /* data
*/, size_t /* count */, size_t /* size */>& /* ClanList */)>
Match_Clan_Standby_ClanList;
// Member Connected
boost::function<void (const std::string& /* szMember */)>
Match_Clan_Member_Connected;
// Request EmblemURL
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* ClanURLList */)> Match_Clan_Request_EmblemURL;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* ClanURLList */)>
Match_Clan_Request_EmblemURL;
// Notify Emblem Ready
boost::function<void (boost::int32_t /* ClanCLID */, const std::string&
/* EmblemURL */)> Match_Clan_Local_EmblemReady;
@@ -491,7 +491,7 @@
boost::function<void (boost::uint64_t /* uidPlayer */)>
Match_Assign_Berserker;
// Queue Info
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* QueueInfo */)> Match_Duel_QueueInfo;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* QueueInfo */)> Match_Duel_QueueInfo;
// QuestPing
boost::function<void (boost::uint32_t /* nTimeStamp */)> Match_Quest_Ping;
@@ -500,7 +500,7 @@
boost::function<void (boost::uint32_t /* nTimeStamp */)> Match_Quest_Pong;
// Send npc info list to client.
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* NPCinfolist */, boost::int32_t /* eGameType */)>
MC_QUEST_NPCLIST;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* NPCinfolist */, boost::int32_t /*
eGameType */)> MC_QUEST_NPCLIST;
// Take out Master from Stage
boost::function<void ()> Event_ChangeMaster;
@@ -560,7 +560,7 @@
boost::function<void (boost::uint64_t /* uidPlayer */, boost::uint32_t /*
XPBonus */, boost::uint32_t /* BPBonus */)> Quest_SectorBonus;
// Quest Game Info
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* Info */)> Quest_GameInfo;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* Info */)> Quest_GameInfo;
// Quest Combat State
boost::function<void (boost::int8_t /* CombatState */)>
Quest_Combat_State;
@@ -569,7 +569,7 @@
boost::function<void (boost::int8_t /* SectorIndex */, boost::uint8_t /*
RepeatIndex */)> Quest_Sector_Start;
// Complete Quest
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* RewardInfo */)> Quest_Complete;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* RewardInfo */)> Quest_Complete;
// Quest failed
boost::function<void ()> Quest_Failed;
@@ -584,16 +584,16 @@
boost::function<void (boost::uint64_t /* uidPlayer */)>
Quest_Readyto_NewSector;
// NPC BasicInfo
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* Info */)> Quest_Peer_NPC_BasicInfo;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* Info */)> Quest_Peer_NPC_BasicInfo;
// NPC HPInfo
- boost::function<void (boost::int32_t /* nNPCCount */, boost::tuple<Buffer
/* data */, size_t /* count */, size_t /* size */> /* HPTable */)>
Quest_Peer_NPC_HPInfo;
+ boost::function<void (boost::int32_t /* nNPCCount */, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& /*
HPTable */)> Quest_Peer_NPC_HPInfo;
// NPC Melee Attack
boost::function<void (boost::uint64_t /* uidOwner */)>
Quest_Peer_NPC_Attack_Melee;
// NPC Range Attack
- boost::function<void (boost::uint64_t /* uidOwner */, boost::tuple<Buffer
/* data */, size_t /* count */, size_t /* size */> /* Info */)>
Quest_Peer_NPC_Attack_Range;
+ boost::function<void (boost::uint64_t /* uidOwner */, const
boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>& /*
Info */)> Quest_Peer_NPC_Attack_Range;
// NPC Skill Start
boost::function<void (boost::uint64_t /* uidOwner */, boost::int32_t /*
nSkill */, boost::uint64_t /* uidTarget */, const boost::array<float, 3>&
/* targetPos */)> Quest_Peer_NPC_Skill_Start;
@@ -665,7 +665,7 @@
boost::function<void (boost::uint64_t /* uid */)> Questitem;
// Response my quest item list
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* Myquestitemlist */)> Quest_item_response;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* Myquestitemlist */)> Quest_item_response;
// Request buy quest item
boost::function<void (boost::uint64_t /* uidChar */, boost::int32_t /*
QuestItemID */)> Quest_item_buy;
@@ -680,7 +680,7 @@
boost::function<void (boost::int32_t /* Result */, boost::int32_t /*
PlayerBounty */)> Quest_item_responsesell;
// Quest reward.
- boost::function<void (boost::int32_t /* XP */, boost::int32_t /* Bounty
*/, boost::tuple<Buffer /* data */, size_t /* count */, size_t /* size */>
/* Rewardquestitem */, boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* RewardZItem */)> Quest_Reward;
+ boost::function<void (boost::int32_t /* XP */, boost::int32_t /* Bounty
*/, const boost::tuple<Buffer /* data */, size_t /* count */, size_t /*
size */>& /* Rewardquestitem */, const boost::tuple<Buffer /* data */,
size_t /* count */, size_t /* size */>& /* RewardZItem */)> Quest_Reward;
// Request drop sacrifice item
boost::function<void (boost::uint64_t /* Dropitemowner */, boost::int32_t
/* Slotindex */, boost::int32_t /* ItemID */)> Quest_Request_Sacrifice;
@@ -704,7 +704,7 @@
boost::function<void (boost::int32_t /* Reachedround */, boost::int32_t
/* Point */)> Quest_Survival_Result;
// Send survival top ranking list
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* Rankinglist */)> Quest_Survival_Ranking;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* Rankinglist */)> Quest_Survival_Ranking;
// Send survival private ranking
boost::function<void (boost::uint32_t /* Rank */, boost::uint32_t /*
Point */)> Quest_Survuval_PrivateRanking;
@@ -722,7 +722,7 @@
boost::function<void ()> MC_REQUEST_GIVE_ONESELF_UP;
// send gamble item info list to client
- boost::function<void (boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */> /* Gambleitemlist */)> MC_RESPONSE_GAMBLEITEMLIST;
+ boost::function<void (const boost::tuple<Buffer /* data */, size_t /*
count */, size_t /* size */>& /* Gambleitemlist */)>
MC_RESPONSE_GAMBLEITEMLIST;
// route updated user equip info
boost::function<void (boost::uint64_t /* useruid */, boost::int32_t /*
parts */, boost::int32_t /* itemid */)>
MC_MATCH_ROUTE_UPDATE_STAGE_EQUIP_LOOK;
=======================================
--- /trunk/protocol/parse.py Sun Jun 27 12:47:56 2010
+++ /trunk/protocol/parse.py Wed Jun 30 18:57:06 2010
@@ -38,7 +38,7 @@
elif paramID == 0x09:
return "boost::uint64_t"
elif paramID == 0x0A:
- return "boost::tuple<Buffer /* data */, size_t /* count */, size_t /*
size */>"
+ return "const boost::tuple<Buffer /* data */, size_t /* count */,
size_t /* size */>&"
elif paramID == 0x0B:
return "boost::int8_t"
elif paramID == 0x0C: