mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 12:33:42 +00:00
22 lines
505 B
C++
22 lines
505 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_dataBytes = 0;
|
|
}
|
|
|
|
void DLCGameRulesFile::addData(std::uint8_t *pbData, std::uint32_t dataBytes)
|
|
{
|
|
m_pbData = pbData;
|
|
m_dataBytes = dataBytes;
|
|
}
|
|
|
|
std::uint8_t *DLCGameRulesFile::getData(std::uint32_t &dataBytes)
|
|
{
|
|
dataBytes = m_dataBytes;
|
|
return m_pbData;
|
|
}
|