PrismLauncher/launcher/minecraft/PackProfile_p.h
Sefa Eyeoglu 91ba4cf75e
chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-08-14 18:16:53 +02:00

29 lines
716 B
C++

#pragma once
#include <QList>
#include <QMap>
#include <QTimer>
#include <map>
#include "Component.h"
class MinecraftInstance;
using ComponentContainer = QList<ComponentPtr>;
using ComponentIndex = QMap<QString, ComponentPtr>;
struct PackProfileData {
// the instance this belongs to
MinecraftInstance* m_instance;
// the launch profile (volatile, temporary thing created on demand)
std::shared_ptr<LaunchProfile> m_profile;
// persistent list of components and related machinery
ComponentContainer components;
ComponentIndex componentIndex;
bool dirty = false;
QTimer m_saveTimer;
Task::Ptr m_updateTask;
bool loaded = false;
bool interactionDisabled = true;
};