void CmdParse::PushPlayerMove(TCPConnection::Pointer conn, STR_PlayerMove* playerMove) { SessionMgr::SessionPointer smap = SessionMgr::Instance()->GetSession(); hf_uint32 roleid = (*smap)[conn].m_roleid; Queue_PlayerMove t_move(roleid, playerMove); m_PlayerMove->push(t_move); }
/**Move a tag list. * * The function tl_move() copies the tag list @a src to the buffer @a * dst. The size of the @a dst list must be at least @c tl_len(src) bytes. * * @param dst pointer to the destination buffer * @param src tag list to be moved * * @return * The function tl_move() returns a pointer to the @a dst list after last * moved element. */ tagi_t *tl_move(tagi_t *dst, tagi_t const src[]) { do { dst = t_move(dst, src); } while ((src = t_next(src))); return dst; }