mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-09 10:38:14 +00:00
refactor: move Common to Platform/Common
This commit is contained in:
21
Minecraft.Client/Platform/Common/DLC/DLCGameRulesFile.cpp
Normal file
21
Minecraft.Client/Platform/Common/DLC/DLCGameRulesFile.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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(PBYTE pbData, DWORD dwBytes)
|
||||
{
|
||||
m_pbData = pbData;
|
||||
m_dwBytes = dwBytes;
|
||||
}
|
||||
|
||||
PBYTE DLCGameRulesFile::getData(DWORD &dwBytes)
|
||||
{
|
||||
dwBytes = m_dwBytes;
|
||||
return m_pbData;
|
||||
}
|
||||
Reference in New Issue
Block a user