<commit_before>/*
Copyright (c) 2014-2021 AscEmu Team <http://www.ascemu.org>
This file is released under the MIT license. See README-MIT for more information.
*/

#pragma once
#include <cstdint>

#include "ManagedPacket.h"

namespace AscEmu::Packets
{
    class SmsgGuildInvite : public ManagedPacket
    {
    public:
        std::string inviterName;
        std::string guildName;

#if VERSION_STRING >= Cata
        uint32_t guildLevel;
        EmblemInfo mEmblemInfo;
        uint32_t guildId;
        uint64_t guildGuid;
#endif

        SmsgGuildInvite() : SmsgGuildInvite("", "")
        {
        }

        SmsgGuildInvite(std::string inviterName, std::string guildName) :
            ManagedPacket(SMSG_GUILD_INVITE, 2 + inviterName.size() + guildName.size()),
            inviterName(inviterName),
            guildName(guildName)
        {
        }

#if VERSION_STRING >= Cata
        SmsgGuildInvite(std::string inviterName, std::string guildName, uint32_t guildLevel, EmblemInfo mEmblemInfo, uint32_t guildId, uint64_t guildGuid) :
            ManagedPacket(SMSG_GUILD_INVITE, 100),
            inviterName(inviterName),
            guildName(guildName),
            guildLevel(guildLevel),
            mEmblemInfo(mEmblemInfo),
            guildId(guildId),<commit_msg>Resolve "V730 Not all members of a class are initialized inside the constructor. Consider inspecting: guildLevel, guildId, guildGuid. SmsgGuildInvite.h 30"<commit_after>/*
Copyright (c) 2014-2021 AscEmu Team <http://www.ascemu.org>
This file is released under the MIT license. See README-MIT for more information.
*/

#pragma once
#include <cstdint>

#include "ManagedPacket.h"

namespace AscEmu::Packets
{
    class SmsgGuildInvite : public ManagedPacket
    {
    public:
        std::string inviterName;
        std::string guildName;

#if VERSION_STRING >= Cata
        uint32_t guildLevel = 0;
        EmblemInfo mEmblemInfo {};
        uint32_t guildId = 0;
        uint64_t guildGuid = 0;
#endif

        SmsgGuildInvite() : SmsgGuildInvite("", "")
        {
        }

        SmsgGuildInvite(std::string inviterName, std::string guildName) :
            ManagedPacket(SMSG_GUILD_INVITE, 2 + inviterName.size() + guildName.size()),
            inviterName(inviterName),
            guildName(guildName)
        {
        }

#if VERSION_STRING >= Cata
        SmsgGuildInvite(std::string inviterName, std::string guildName, uint32_t guildLevel, EmblemInfo mEmblemInfo, uint32_t guildId, uint64_t guildGuid) :
            ManagedPacket(SMSG_GUILD_INVITE, 100),
            inviterName(inviterName),
            guildName(guildName),
            guildLevel(guildLevel),
            mEmblemInfo(mEmblemInfo),
            guildId(guildId),
{'fraction_non_alphanumeric': 0.09350935093509351, 'fraction_numerical': 0.020535386872020535, 'mean_word_length': 2.820728291316527, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '121837', 'n_tokens_mistral': 939, 'n_tokens_neox': 873, 'n_words': 187}