File indexing completed on 2024-05-26 15:33:44

0001 /**
0002  * SDPX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
0003  *
0004  * SPDX-LicenseRed: GPL-3.0-or-later
0005  */
0006 
0007 #include "gamepackage.h"
0008 
0009 #include <kpackage/package.h>
0010 
0011 void GamePackageStructure::initPackage(KPackage::Package *package)
0012 {
0013     package->setDefaultPackageRoot(QStringLiteral("game/packages"));
0014     package->addDirectoryDefinition("ui", QStringLiteral("ui"));
0015     
0016     package->addFileDefinition("mainscript", QStringLiteral("ui/main.qml"));
0017     package->setRequired("mainscript", true);
0018 }
0019 
0020 K_PLUGIN_CLASS_WITH_JSON(GamePackageStructure, "game-packagestructure.json")
0021 
0022 #include "gamepackage.moc"
0023 
0024 #include "moc_gamepackage.cpp"