aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/DLC/DLCFile.h
blob: 3a40dbc765ce521eca313d3bd7383e45f048973c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "DLCManager.h"

class DLCFile
{
protected:
	DLCManager::EDLCType m_type;
	wstring m_path;
	DWORD m_dwSkinId;

public:
	DLCFile(DLCManager::EDLCType type, const wstring &path);
	virtual ~DLCFile() {}

	DLCManager::EDLCType getType()	{ return m_type; }
	wstring getPath()				{ return m_path; }
	DWORD getSkinID()				{ return m_dwSkinId; }

	virtual void addData(PBYTE pbData, DWORD dwBytes) {}
	virtual PBYTE getData(DWORD &dwBytes) { dwBytes = 0; return NULL; }
	virtual void addParameter(DLCManager::EDLCParameterType type, const wstring &value) {}

	virtual wstring getParameterAsString(DLCManager::EDLCParameterType type) { return L""; }
	virtual bool getParameterAsBool(DLCManager::EDLCParameterType type) { return false;}
};