mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-04 14:09:47 +03:00
* Add semi transparent glass as patch.
This commit is contained in:
@@ -19,6 +19,7 @@ PatchManager* GetPatchManager()
|
||||
PatchManager::PatchManager()
|
||||
{
|
||||
m_bGrassTinted = true;
|
||||
m_bGlassSemiTransparent = false;
|
||||
m_nMetalSideYOffset = -1;
|
||||
}
|
||||
|
||||
@@ -130,8 +131,11 @@ void PatchManager::LoadPatchData(const std::string& patchData)
|
||||
ReadBool(lineStream, m_bGrassTinted);
|
||||
continue;
|
||||
}
|
||||
|
||||
// features -- TODO un-hardcode this
|
||||
if (command == "semi_transparent_glass")
|
||||
{
|
||||
ReadBool(lineStream, m_bGlassSemiTransparent);
|
||||
continue;
|
||||
}
|
||||
if (command == "metal_block_sides")
|
||||
{
|
||||
ReadInt(lineStream, m_nMetalSideYOffset);
|
||||
@@ -208,6 +212,11 @@ int PatchManager::GetMetalSideYOffset()
|
||||
return m_nMetalSideYOffset;
|
||||
}
|
||||
|
||||
bool PatchManager::IsGlassSemiTransparent()
|
||||
{
|
||||
return m_bGlassSemiTransparent;
|
||||
}
|
||||
|
||||
void PatchManager::ReadBool(std::istream& is, bool& b)
|
||||
{
|
||||
std::string flag;
|
||||
|
||||
Reference in New Issue
Block a user