本文整理汇总了C++中CNetMsg::__ls方法的典型用法代码示例。如果您正苦于以下问题:C++ CNetMsg::__ls方法的具体用法?C++ CNetMsg::__ls怎么用?C++ CNetMsg::__ls使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CNetMsg
的用法示例。
在下文中一共展示了CNetMsg::__ls方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PreopenGiftErrorMsg
void PreopenGiftErrorMsg(CNetMsg &m_msg, int m1, int m2, _tagMsgConnErrorCode m3) // CHECKED
{
m_msg.Init(112);
m_msg.__ls((unsigned char)9);
m_msg.__ls((int)m1);
m_msg.__ls((int)m2);
m_msg.__ls((char)m3);
}
示例2: StashSealMsg
void StashSealMsg(CNetMsg &m_msg, int m1, int m2, char m3) // CHECKED
{
m_msg.Init(112);
m_msg.__ls((unsigned char)14);
m_msg.__ls((int)m1);
m_msg.__ls((int)m2);
m_msg.__ls((char)m3);
}
示例3: StashCheckPasswordMsg
void StashCheckPasswordMsg(CNetMsg &m_msg, int m1, int m2, char m3) // CHECKED
{
m_msg.Init(112);
m_msg.__ls((char)12);
m_msg.__ls((int)m1);
m_msg.__ls((int)m2);
m_msg.__ls((char const *)"");
m_msg.__ls((char)m3);
}
示例4: StashChangePasswordMsg
void StashChangePasswordMsg(CNetMsg &m_msg, int m1, int m2, char const *m3, char m4) // CHECKED
{
m_msg.Init(112);
m_msg.__ls((unsigned char)13);
m_msg.__ls((int)m1);
m_msg.__ls((int)m2);
m_msg.__ls((char const *)"");
m_msg.__ls((char const *)m3);
m_msg.__ls((char)m4);
}
示例5: MsgrWhisperNotfoundMsg
void MsgrWhisperNotfoundMsg(CNetMsg &netmsg, int a2, int a3, int a4, int a5, int a6, const char *a7)
{
netmsg.Init(102);
netmsg.__ls(a2);
netmsg.__ls(a3);
netmsg.__ls(a4);
netmsg.__ls(5);
netmsg.__ls(3);
netmsg.__ls(a6);
netmsg.__ls(a7);
}
示例6: MsgrLogoutRepMsg
void MsgrLogoutRepMsg(CNetMsg &netmsg, int a2, int a3, int a4, int a5, char a6, const char *a7)
{
netmsg.Init(102);
netmsg.__ls(a2);
netmsg.__ls(a3);
netmsg.__ls(a4);
netmsg.__ls(a5);
netmsg.__ls(9);
netmsg.__ls(a6);
netmsg.__ls(a7);
}
示例7: LogoutReqMsg
void LogoutReqMsg(CNetMsg &m_msg, int a1, int a2, int a3, CDescriptor *m_desc) // CHECKED
{
m_msg.Init(101);
m_msg.__ls((int)0);
m_msg.__ls((int)a1);
m_msg.__ls((int)a2);
m_msg.__ls((int)a3);
m_msg.__ls((unsigned char)6);
m_msg.__ls((char const *)m_desc->Username);
m_msg.__ls((char const *)m_desc->Password);
}
示例8: MsgrWhisperRep
void MsgrWhisperRep(CNetMsg &netmsg, int a2, int a3, int a4, int a5, int a6, const char *a7, const char *a8, const char *a9)
{
netmsg.Init(102);
netmsg.__ls(a2);
netmsg.__ls(a3);
netmsg.__ls(a4);
netmsg.__ls(a5);
netmsg.__ls(1);
netmsg.__ls(a6);
netmsg.__ls(a7);
netmsg.__ls(a8);
netmsg.__ls(a9);
}
示例9: MsgrGoZoneRepMsg
void MsgrGoZoneRepMsg(CNetMsg &netmsg, int a2, int a3, int a4, int a5, char a6, int a7, int a8, int a9, int a10, float a11, float a12)
{
netmsg.Init(102);
netmsg.__ls(a2);
netmsg.__ls(a3);
netmsg.__ls(a4);
netmsg.__ls(a5);
netmsg.__ls(11);
netmsg.__ls(a6);
netmsg.__ls(a7);
netmsg.__ls(a8);
netmsg.__ls(a9);
}
示例10: PlayerRepMsg
void PlayerRepMsg(CNetMsg &m_msg) // CHECKED
{
CDescriptor **m_descs_list;
CDescriptor *m_current_desc;
m_msg.Init(112);
m_msg.__ls((unsigned char)7);
m_msg.__ls((int)gserver.Number);
m_msg.__ls((int)gserver.MaxSubServer);
m_current_desc = gserver.ClientDescriptors;
m_descs_list = (CDescriptor **)malloc(sizeof(CDescriptor *) * gserver.MaxSubServer);
memset(m_descs_list, 0, sizeof(CDescriptor *) * gserver.MaxSubServer);
while(m_current_desc)
{
if(m_current_desc->Unk169)
m_descs_list[m_current_desc->SubServerID - 1] = m_current_desc;
m_current_desc = m_current_desc->Node;
}
for(int i = 1; i <= gserver.MaxSubServer; ++i)
{
m_msg.__ls((int)i);
if(m_descs_list[i - 1])
{
m_msg.__ls((int)gserver.Users[m_descs_list[i - 1]->SubServerID - 1].UsersOnline);
m_msg.__ls((char const *)m_descs_list[i - 1]->Unk170);
m_msg.__ls((int)m_descs_list[i - 1]->Unk204);
}
else
{
m_msg.__ls((int)-1);
m_msg.__ls((char const *)"");
m_msg.__ls((int)0);
}
}
}
示例11: LoginRepMsg
void LoginRepMsg(CNetMsg &m_msg, _tagMsgConnErrorCode m1, char const *m2, CUser *m_user) // CHECKED
{
m_msg.Init(112);
m_msg.__ls((unsigned char)1);
m_msg.__ls((char const *)m2);
m_msg.__ls((unsigned char)m1);
if(!m1)
{
m_msg.__ls((int)m_user->PortalIndex);
m_msg.__ls((unsigned char)(*(char *)&m_user->Unk100));
m_msg.__ls((int)m_user->Timestamp);
m_msg.__ls((unsigned char)(*(char *)&m_user->Unk108));
m_msg.__ls((unsigned char)(*(char *)&m_user->Unk112));
m_msg.__ls((int)m_user->Unk104);
}
}
示例12: ConLogoutReqMsg
void ConLogoutReqMsg(CNetMsg &m_msg, char *m_data) // CHECKED
{
m_msg.Init(111);
m_msg.__ls((unsigned char)2);
m_msg.__ls((char const *)m_data);
}
示例13: PlayerNumMsg
void PlayerNumMsg(CNetMsg &m_msg, int a2, int a3, int m_conn_num) // CHECKED
{
m_msg.Init(34);
m_msg.__ls((int)a2);
m_msg.__ls((int)a3);
m_msg.__ls((int)gserver.p_connector_count);
m_msg.__ls((int)(m_conn_num + 1));
if(!gserver.p_connector_descs[m_conn_num] || gserver.p_connecting_connector[m_conn_num])
{
strcpy(g_buf, "Connector_");
IntCat(g_buf, m_conn_num, false);
m_msg.__ls((int)atoi(gserver.p_conf_file.Find(g_buf, "Number")));
m_msg.__ls((int)atoi(gserver.p_conf_file.Find(g_buf, "MaxSubNumber")));
for(int i = 0; i < gserver.p_connector_descs[m_conn_num]->MaxSubNumber; i++)
{
m_msg.__ls((int)(i + 1));
m_msg.__ls((int)1998);
m_msg.__ls((char const *)"");
m_msg.__ls((int)0);
}
}
else
{
m_msg.__ls((int)gserver.p_connector_descs[m_conn_num]->Number);
m_msg.__ls((int)gserver.p_connector_descs[m_conn_num]->MaxSubNumber);
for(int j = 0; j < gserver.p_connector_descs[m_conn_num]->MaxSubNumber; j++)
{
m_msg.__ls((int)gserver.p_connector_descs[m_conn_num]->ConnectorsID[j]);
m_msg.__ls((int)(gserver.p_connector_descs[m_conn_num]->ConnectorsUnk[j] + 1999));
m_msg.__ls((char const *)gserver.p_connector_descs[m_conn_num]->ConnectorsIP[j]);
m_msg.__ls((int)gserver.p_connector_descs[m_conn_num]->ConnectorsUnk2[j]);
}
}
}
示例14: PlayerReqMsg
void PlayerReqMsg(CNetMsg &m_msg) // CHECKED
{
m_msg.Init(111);
m_msg.__ls((unsigned char)6);
}
示例15: FailMsg
void FailMsg(CNetMsg &m_msg, __tagMsgFailType m_tag) // CHECKED
{
m_msg.Init(1);
m_msg.__ls((__tagMsgFailType)m_tag);
}