pollymc/launcher/minecraft/mod/ModDetails.h
flow 23febc6d94
feat: cache metadata in ModDetails
Allows for more easy access to the metadata by outside entities
2022-05-23 14:42:28 -03:00

36 lines
694 B
C++

#pragma once
#include <memory>
#include <QString>
#include <QStringList>
#include "minecraft/mod/MetadataHandler.h"
struct ModDetails
{
/* Mod ID as defined in the ModLoader-specific metadata */
QString mod_id;
/* Human-readable name */
QString name;
/* Human-readable mod version */
QString version;
/* Human-readable minecraft version */
QString mcversion;
/* URL for mod's home page */
QString homeurl;
/* Human-readable description */
QString description;
/* List of the author's names */
QStringList authors;
/* Metadata information, if any */
std::shared_ptr<Metadata::ModStruct> metadata;
};