/****************************************************************************
** Meta object code from reading C++ file 'world.h'
**
** Created by: The Qt Meta Object Compiler version 68 (Qt 6.7.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../src/libtiled/world.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'world.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.7.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {

#ifdef QT_MOC_HAS_STRINGDATA
struct qt_meta_stringdata_CLASSTiledSCOPEWorldMapEntryENDCLASS_t {};
constexpr auto qt_meta_stringdata_CLASSTiledSCOPEWorldMapEntryENDCLASS = QtMocHelpers::stringData(
    "Tiled::WorldMapEntry",
    "fileName",
    "rect"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_CLASSTiledSCOPEWorldMapEntryENDCLASS[] = {

 // content:
      12,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       2,   14, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       4,       // flags
       0,       // signalCount

 // properties: name, type, flags
       1, QMetaType::QString, 0x00015003, uint(-1), 0,
       2, QMetaType::QRect, 0x00015003, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT const QMetaObject Tiled::WorldMapEntry::staticMetaObject = { {
    nullptr,
    qt_meta_stringdata_CLASSTiledSCOPEWorldMapEntryENDCLASS.offsetsAndSizes,
    qt_meta_data_CLASSTiledSCOPEWorldMapEntryENDCLASS,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSTiledSCOPEWorldMapEntryENDCLASS_t,
        // property 'fileName'
        QtPrivate::TypeAndForceComplete<QString, std::true_type>,
        // property 'rect'
        QtPrivate::TypeAndForceComplete<QRect, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<WorldMapEntry, std::true_type>
    >,
    nullptr
} };

void Tiled::WorldMapEntry::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::ReadProperty) {
        auto *_t = reinterpret_cast<WorldMapEntry *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->fileName; break;
        case 1: *reinterpret_cast< QRect*>(_v) = _t->rect; break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = reinterpret_cast<WorldMapEntry *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0:
            if (_t->fileName != *reinterpret_cast< QString*>(_v)) {
                _t->fileName = *reinterpret_cast< QString*>(_v);
            }
            break;
        case 1:
            if (_t->rect != *reinterpret_cast< QRect*>(_v)) {
                _t->rect = *reinterpret_cast< QRect*>(_v);
            }
            break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    } else if (_c == QMetaObject::BindableProperty) {
    }
    (void)_o;
    (void)_id;
    (void)_c;
    (void)_a;
}
namespace {

#ifdef QT_MOC_HAS_STRINGDATA
struct qt_meta_stringdata_CLASSTiledSCOPEWorldPatternENDCLASS_t {};
constexpr auto qt_meta_stringdata_CLASSTiledSCOPEWorldPatternENDCLASS = QtMocHelpers::stringData(
    "Tiled::WorldPattern",
    "regExp",
    "multiplierX",
    "multiplierY",
    "offset",
    "mapSize"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_CLASSTiledSCOPEWorldPatternENDCLASS[] = {

 // content:
      12,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       5,   14, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       4,       // flags
       0,       // signalCount

 // properties: name, type, flags
       1, QMetaType::QRegularExpression, 0x00015003, uint(-1), 0,
       2, QMetaType::Int, 0x00015003, uint(-1), 0,
       3, QMetaType::Int, 0x00015003, uint(-1), 0,
       4, QMetaType::QPoint, 0x00015003, uint(-1), 0,
       5, QMetaType::QSize, 0x00015003, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT const QMetaObject Tiled::WorldPattern::staticMetaObject = { {
    nullptr,
    qt_meta_stringdata_CLASSTiledSCOPEWorldPatternENDCLASS.offsetsAndSizes,
    qt_meta_data_CLASSTiledSCOPEWorldPatternENDCLASS,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSTiledSCOPEWorldPatternENDCLASS_t,
        // property 'regExp'
        QtPrivate::TypeAndForceComplete<QRegularExpression, std::true_type>,
        // property 'multiplierX'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'multiplierY'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'offset'
        QtPrivate::TypeAndForceComplete<QPoint, std::true_type>,
        // property 'mapSize'
        QtPrivate::TypeAndForceComplete<QSize, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<WorldPattern, std::true_type>
    >,
    nullptr
} };

void Tiled::WorldPattern::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::ReadProperty) {
        auto *_t = reinterpret_cast<WorldPattern *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QRegularExpression*>(_v) = _t->regexp; break;
        case 1: *reinterpret_cast< int*>(_v) = _t->multiplierX; break;
        case 2: *reinterpret_cast< int*>(_v) = _t->multiplierY; break;
        case 3: *reinterpret_cast< QPoint*>(_v) = _t->offset; break;
        case 4: *reinterpret_cast< QSize*>(_v) = _t->mapSize; break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = reinterpret_cast<WorldPattern *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0:
            if (_t->regexp != *reinterpret_cast< QRegularExpression*>(_v)) {
                _t->regexp = *reinterpret_cast< QRegularExpression*>(_v);
            }
            break;
        case 1:
            if (_t->multiplierX != *reinterpret_cast< int*>(_v)) {
                _t->multiplierX = *reinterpret_cast< int*>(_v);
            }
            break;
        case 2:
            if (_t->multiplierY != *reinterpret_cast< int*>(_v)) {
                _t->multiplierY = *reinterpret_cast< int*>(_v);
            }
            break;
        case 3:
            if (_t->offset != *reinterpret_cast< QPoint*>(_v)) {
                _t->offset = *reinterpret_cast< QPoint*>(_v);
            }
            break;
        case 4:
            if (_t->mapSize != *reinterpret_cast< QSize*>(_v)) {
                _t->mapSize = *reinterpret_cast< QSize*>(_v);
            }
            break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    } else if (_c == QMetaObject::BindableProperty) {
    }
    (void)_o;
    (void)_id;
    (void)_c;
    (void)_a;
}
QT_WARNING_POP
