mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 02:53:36 +00:00
22 lines
465 B
C++
22 lines
465 B
C++
#include "../../Minecraft.World/Platform/stdafx.h"
|
|
#include "DLCManager.h"
|
|
#include "DLCGameRulesFile.h"
|
|
|
|
DLCGameRulesFile::DLCGameRulesFile(const std::wstring &path) : DLCGameRules(DLCManager::e_DLCType_GameRules,path)
|
|
{
|
|
m_pbData = NULL;
|
|
m_dwBytes = 0;
|
|
}
|
|
|
|
void DLCGameRulesFile::addData(uint8_t *pbData, DWORD dwBytes)
|
|
{
|
|
m_pbData = pbData;
|
|
m_dwBytes = dwBytes;
|
|
}
|
|
|
|
uint8_t *DLCGameRulesFile::getData(DWORD &dwBytes)
|
|
{
|
|
dwBytes = m_dwBytes;
|
|
return m_pbData;
|
|
}
|