2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:07:41 +00:00

CScriptAreaAttributes imps, update hecl

This commit is contained in:
2016-10-01 20:06:20 -07:00
parent 6b97fa0242
commit 77d8b75d2f
8 changed files with 107 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
#include "Graphics/CBooRenderer.hpp"
#include "CSimplePool.hpp"
#include "CStateManager.hpp"
#include "World/CScriptAreaAttributes.hpp"
namespace urde
{
@@ -903,4 +904,14 @@ CGameArea::MREAHeader CGameArea::VerifyHeader() const
return header;
}
void CGameArea::SetAreaAttributes(const CScriptAreaAttributes* areaAttributes)
{
x12c_postConstructed->x10d8_areaAttributes = areaAttributes;
if (areaAttributes == nullptr)
return;
x12c_postConstructed->x111c_thermalCurrent = areaAttributes->GetThermalHeat();
x12c_postConstructed->x1128_worldLightingLevel = areaAttributes->GetWorldLightingLevel();
}
}