mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 04:32:14 +00:00
Move all the things (YES. Move them.)
Also, implemented some basic modlist logic, to be wired up.
This commit is contained in:
24
logic/VersionFactory.h
Normal file
24
logic/VersionFactory.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <QtCore>
|
||||
|
||||
struct FullVersion;
|
||||
class Rule;
|
||||
|
||||
class FullVersionFactory
|
||||
{
|
||||
public:
|
||||
enum Error
|
||||
{
|
||||
AllOK, // all parsed OK
|
||||
ParseError, // the file was corrupted somehow
|
||||
UnsupportedVersion // the file was meant for a launcher version we don't support (yet)
|
||||
} m_error;
|
||||
QString error_string;
|
||||
|
||||
public:
|
||||
FullVersionFactory();
|
||||
QSharedPointer<FullVersion> parse(QByteArray data);
|
||||
private:
|
||||
QSharedPointer<FullVersion> parse4(QJsonObject root, QSharedPointer<FullVersion> product);
|
||||
QList<QSharedPointer<Rule> > parse4rules(QJsonObject & baseObj);
|
||||
};
|
||||
Reference in New Issue
Block a user