//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a RdGen v1.13.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#include "ScriptMsgException.Pregenerated.h"



#ifdef _MSC_VER
#pragma warning( push )
#pragma warning( disable:4250 )
#pragma warning( disable:4307 )
#pragma warning( disable:4267 )
#pragma warning( disable:4244 )
#pragma warning( disable:4100 )
#endif

namespace JetBrains {
namespace EditorPlugin {
// companion
// constants
// initializer
void ScriptMsgException::initialize()
{
}
// primary ctor
ScriptMsgException::ScriptMsgException(FString message_) :
IScriptMsg()
,message_(std::move(message_))
{
    initialize();
}
// secondary constructor
// default ctors and dtors
// reader
ScriptMsgException ScriptMsgException::read(rd::SerializationCtx& ctx, rd::Buffer & buffer)
{
    auto message_ = rd::Polymorphic<FString>::read(ctx, buffer);
    ScriptMsgException res{std::move(message_)};
    return res;
}
// writer
void ScriptMsgException::write(rd::SerializationCtx& ctx, rd::Buffer& buffer) const
{
    rd::Polymorphic<std::decay_t<decltype(message_)>>::write(ctx, buffer, message_);
}
// virtual init
// identify
// getters
FString const & ScriptMsgException::get_message() const
{
    return message_;
}
// intern
// equals trait
bool ScriptMsgException::equals(rd::ISerializable const& object) const
{
    auto const &other = dynamic_cast<ScriptMsgException const&>(object);
    if (this == &other) return true;
    if (this->message_ != other.message_) return false;
    
    return true;
}
// equality operators
bool operator==(const ScriptMsgException &lhs, const ScriptMsgException &rhs) {
    if (lhs.type_name() != rhs.type_name()) return false;
    return lhs.equals(rhs);
}
bool operator!=(const ScriptMsgException &lhs, const ScriptMsgException &rhs){
    return !(lhs == rhs);
}
// hash code trait
size_t ScriptMsgException::hashCode() const noexcept
{
    size_t __r = 0;
    __r = __r * 31 + (rd::hash<FString>()(get_message()));
    return __r;
}
// type name trait
std::string ScriptMsgException::type_name() const
{
    return "ScriptMsgException";
}
// static type name trait
std::string ScriptMsgException::static_type_name()
{
    return "ScriptMsgException";
}
// polymorphic to string
std::string ScriptMsgException::toString() const
{
    std::string res = "ScriptMsgException\n";
    res += "\tmessage = ";
    res += rd::to_string(message_);
    res += '\n';
    return res;
}
// external to string
std::string to_string(const ScriptMsgException & value)
{
    return value.toString();
}
}
}

#ifdef _MSC_VER
#pragma warning( pop )
#endif

