标签:c t 服务器 初始化 app 数据 js map ase player 数据包
----------人物上线----------
map----- gs2msData------
gs2ms_add_player(协议消息)
PlayerChannel OnPlayerEnter--
data(数据包,初始化playerinfo中信息)
1.add_player有个send_obj_enter->send_player_chennged->send_cmd2client->send_ms2gs_data(ms2gs_转client_cmd)->m_quPkts.push(MapPkt
pkt)
2.on_json map-- gs2msData --
gs2ms_转client_cmd->PlayerChannel::onCmd->send_cmd2client->send_cmd2client->send_ms2gs_data(ms2gs_转client_cmd)->m_quePkts.push(pkt)
m_pDataLayer->send_data
BaseChannel
on_receive_data data(包数据)
map----- init-----------
data(数据包,相应的绑定函数)
---------人物下线-----------
Map::gs2msData(gs2ms_del_player)->Map::del_player->PlayerChannel::send_infoex_to_gs()->PlayerChannel::send_infoex2gs2db->PlayerChannel::send_ms2gs_data->m_quePkts.push(pkt)
标签:c t 服务器 初始化 app 数据 js map ase player 数据包
原文地址:http://www.cnblogs.com/zzyoucan/p/3697132.html