public void Button_EmosShow(int emoIdex) { showPlane(TYPE_EMOS, emoIdex, m_pLocal.GetChairID()); //mChen CMD_GF_C_UserExpressionIdx UserExpression = new CMD_GF_C_UserExpressionIdx(); UserExpression.wItemIndex = (ushort)emoIdex; UserExpression.wSendUserID = m_pLocal.GetChairID(); var buf = StructConverterByteArray.StructToBytes(UserExpression); CServerItem.get().SendSocketData(GameServerDefines.MDM_GF_FRAME, GameServerDefines.SUB_GF_USER_EXPRESSION_INDEX, buf, (ushort)buf.Length); }
public override bool OnSubUserExpressionIndex(byte[] data, int dataSize) { //效验参数 var typeValue = typeof(CMD_GF_C_UserExpressionIdx); if (dataSize != Marshal.SizeOf(typeValue)) { return(false); } //消息处理 CMD_GF_C_UserExpressionIdx pUserExpressionIdx = (CMD_GF_C_UserExpressionIdx)StructConverterByteArray.BytesToStruct(data, typeValue); ushort localChairId = m_pLocal.GetChairID(); if (pUserExpressionIdx.wSendUserID != localChairId) { showPlane(TYPE_EMOS, pUserExpressionIdx.wItemIndex, pUserExpressionIdx.wSendUserID); } return(true); } //mChen