/****************************************************************************
** Meta object code from reading C++ file 'world.h'
**
** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.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.8.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 {
struct qt_meta_tag_ZN5Tiled13WorldMapEntryE_t {};
} // unnamed namespace


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN5Tiled13WorldMapEntryE = QtMocHelpers::stringData(
    "Tiled::WorldMapEntry",
    "fileName",
    "rect"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA

Q_CONSTINIT static const uint qt_meta_data_ZN5Tiled13WorldMapEntryE[] = {

 // 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, notifyId, revision
       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_ZN5Tiled13WorldMapEntryE.offsetsAndSizes,
    qt_meta_data_ZN5Tiled13WorldMapEntryE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN5Tiled13WorldMapEntryE_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)
{
    auto *_t = reinterpret_cast<WorldMapEntry *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        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;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        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;
        }
    }
}
namespace {
struct qt_meta_tag_ZN5Tiled12WorldPatternE_t {};
} // unnamed namespace


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN5Tiled12WorldPatternE = 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

Q_CONSTINIT static const uint qt_meta_data_ZN5Tiled12WorldPatternE[] = {

 // 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, notifyId, revision
       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_ZN5Tiled12WorldPatternE.offsetsAndSizes,
    qt_meta_data_ZN5Tiled12WorldPatternE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN5Tiled12WorldPatternE_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)
{
    auto *_t = reinterpret_cast<WorldPattern *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        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;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        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;
        }
    }
}
QT_WARNING_POP
