<commit_before>/**
 * Copyright (C) 2012 by INdT
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

#include "quasigameplugins.h"

#include "animatedlayer.h"
#include "box2ddistancejointitem.h"
#include "box2ditem.h"
#include "box2dscene.h"
#include "box2dmousejointitem.h"
#include "gameitem.h"
#include "gamelayers.h"
#include "gamescene.h"
#include "spriteanimationitem.h"
#include "spriteitem.h"
#include "staticlayer.h"
#include "quasigame.h"
#include "viewport.h"

void QuasiGamePlugins::registerTypes(const char *uri)
{
    Q_UNUSED(uri)

    qmlRegisterUncreatableType<Quasi>("QuasiGame", 1, 0, "Quasi", "Exporting Quasi enums to QML");

    qmlRegisterType<QuasiGame>("QuasiGame", 1, 0, "QuasiGame");
    qmlRegisterType<GameScene>("QuasiGame", 1, 0, "QuasiScene");
    qmlRegisterType<GameItem>("QuasiGame", 1, 0, "QuasiEntity");
    qmlRegisterType<SpriteItem>("QuasiGame", 1, 0, "QuasiSprite");
    qmlRegisterType<SpriteAnimationItem>("QuasiGame", 1, 0, "QuasiAnimation");
    qmlRegisterType<Box2DScene>("QuasiGame", 1, 0, "QuasiPhysicsScene");
    qmlRegisterType<Box2DItem>("QuasiGame", 1, 0, "QuasiBody");
    qmlRegisterType<Box2DDistanceJointItem>("QuasiGame", 1, 0, "QuasiDistanceJoint");
    qmlRegisterType<Box2DMouseJointItem>("QuasiGame", 1, 0, "QuasiMouseJoint");
    qmlRegisterType<GameLayers>("QuasiGame", 1, 0, "QuasiLayers");
    qmlRegisterType<Layer>("QuasiGame", 1, 0, "Layer"); // this is neede for any sort of Layers
    qmlRegisterType<StaticLayer>("QuasiGame", 1, 0, "QuasiStaticLayer");
    qmlRegisterType<AnimatedLayer>("QuasiGame", 1, 0, "QuasiAnimatedLayer");
    qmlRegisterType<Viewport>("QuasiGame", 1, 0, "QuasiViewport");
}

Q_EXPORT_PLUGIN2(QuasiGame, QuasiGamePlugins);<commit_msg>Registering 'Layer' as an uncreatable type, instead of a normal one<commit_after>/**
 * Copyright (C) 2012 by INdT
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

#include "quasigameplugins.h"

#include "animatedlayer.h"
#include "box2ddistancejointitem.h"
#include "box2ditem.h"
#include "box2dscene.h"
#include "box2dmousejointitem.h"
#include "gameitem.h"
#include "gamelayers.h"
#include "gamescene.h"
#include "spriteanimationitem.h"
#include "spriteitem.h"
#include "staticlayer.h"
#include "quasigame.h"
#include "viewport.h"

void QuasiGamePlugins::registerTypes(const char *uri)
{
    Q_UNUSED(uri)

    qmlRegisterUncreatableType<Quasi>("QuasiGame", 1, 0, "Quasi", "Exporting Quasi enums to QML");
    qmlRegisterUncreatableType<Layer>("QuasiGame", 1, 0, "Layer", "Registering Layer as we use it on QuasiLayers");

    qmlRegisterType<QuasiGame>("QuasiGame", 1, 0, "QuasiGame");
    qmlRegisterType<GameScene>("QuasiGame", 1, 0, "QuasiScene");
    qmlRegisterType<GameItem>("QuasiGame", 1, 0, "QuasiEntity");
    qmlRegisterType<SpriteItem>("QuasiGame", 1, 0, "QuasiSprite");
    qmlRegisterType<SpriteAnimationItem>("QuasiGame", 1, 0, "QuasiAnimation");
    qmlRegisterType<Box2DScene>("QuasiGame", 1, 0, "QuasiPhysicsScene");
    qmlRegisterType<Box2DItem>("QuasiGame", 1, 0, "QuasiBody");
    qmlRegisterType<Box2DDistanceJointItem>("QuasiGame", 1, 0, "QuasiDistanceJoint");
    qmlRegisterType<Box2DMouseJointItem>("QuasiGame", 1, 0, "QuasiMouseJoint");
    qmlRegisterType<GameLayers>("QuasiGame", 1, 0, "QuasiLayers");
    qmlRegisterType<StaticLayer>("QuasiGame", 1, 0, "QuasiStaticLayer");
    qmlRegisterType<AnimatedLayer>("QuasiGame", 1, 0, "QuasiAnimatedLayer");
    qmlRegisterType<Viewport>("QuasiGame", 1, 0, "QuasiViewport");
}

Q_EXPORT_PLUGIN2(QuasiGame, QuasiGamePlugins);
{'fraction_non_alphanumeric': 0.1272365805168986, 'fraction_numerical': 0.02186878727634195, 'mean_word_length': 5.708, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7626133', 'n_tokens_mistral': 1749, 'n_tokens_neox': 1672, 'n_words': 479}