Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ClubRoomType != 0)
            {
                hash ^= ClubRoomType.GetHashCode();
            }
            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            return(hash);
        }
    /// <summary>
    /// 通过俱乐部进入房间
    /// </summary>
    /// <param name="clubid"></param>
    /// <param name="haveroomid"></param>
    /// <param name="x"></param>
    /// <param name="y"></param>
    /// <param name="type"></param>
    public static void ClubEnterRoom(uint clubid, bool haveroomid, float x, float y, uint roomId, ClubRoomType type, uint ChipIndex, NNYongPai yongpai, JiangMaType jiangma, bool shunzhiniu, bool zhadanniu, bool wuxiaoniu, bool wuhuaniu, bool xianjiamaima)
    {
        NetworkMessage message = NetworkMessage.Create((ushort)Opcodes.Client_Club_Player_Enter_Room, 100);

        message.writeUInt32(clubid);
        message.writeBool(haveroomid);
        message.writeFloat(x);
        message.writeFloat(y);
        message.writeUInt32(roomId);
        message.writeUInt8((byte)type);
        message.writeUInt8((byte)ChipIndex);

        message.writeUInt8((byte)yongpai);
        message.writeUInt8((byte)jiangma);

        message.writeBool(shunzhiniu);
        message.writeBool(zhadanniu);
        message.writeBool(wuxiaoniu);
        message.writeBool(wuhuaniu);
        message.writeBool(xianjiamaima);

        SendMsg(message);
    }