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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user