GH-2026 implement changes necessary to support 1.13 snapshots
This commit is contained in:
parent
17c8f31a09
commit
85ae710d40
51 changed files with 2632 additions and 1058 deletions
32
api/logic/minecraft/ComponentUpdateTask_p.h
Normal file
32
api/logic/minecraft/ComponentUpdateTask_p.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <QString>
|
||||
#include <QList>
|
||||
#include "net/Mode.h"
|
||||
|
||||
class ComponentList;
|
||||
|
||||
struct RemoteLoadStatus
|
||||
{
|
||||
enum class Type
|
||||
{
|
||||
Index,
|
||||
List,
|
||||
Version
|
||||
} type = Type::Version;
|
||||
size_t componentListIndex = 0;
|
||||
bool finished = false;
|
||||
bool succeeded = false;
|
||||
QString error;
|
||||
};
|
||||
|
||||
struct ComponentUpdateTaskData
|
||||
{
|
||||
ComponentList * m_list = nullptr;
|
||||
QList<RemoteLoadStatus> remoteLoadStatusList;
|
||||
bool remoteLoadSuccessful = true;
|
||||
size_t remoteTasksInProgress = 0;
|
||||
ComponentUpdateTask::Mode mode;
|
||||
Net::Mode netmode;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue