mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:47:42 +00:00
Formatting, and more script object implementations
This commit is contained in:
@@ -9,15 +9,15 @@ namespace urde
|
||||
CScriptAreaAttributes::CScriptAreaAttributes(TUniqueId uid, const CEntityInfo& info, bool showSkybox, EEnvFxType fxType,
|
||||
float envFxDensity, float thermalHeat, float xrayFogDistance,
|
||||
float worldLightingLevel, ResId skybox, EPhazonType phazonType)
|
||||
: CEntity(uid, info, true, std::string()),
|
||||
x34_24_showSkybox(showSkybox),
|
||||
x38_envFx(fxType),
|
||||
x3c_envFxDensity(envFxDensity),
|
||||
x40_thermalHeat(thermalHeat),
|
||||
x44_xrayFogDistance(xrayFogDistance),
|
||||
x48_worldLightingLevel(worldLightingLevel),
|
||||
x4c_skybox(skybox),
|
||||
x50_phazon(phazonType)
|
||||
: CEntity(uid, info, true, std::string())
|
||||
, x34_24_showSkybox(showSkybox)
|
||||
, x38_envFx(fxType)
|
||||
, x3c_envFxDensity(envFxDensity)
|
||||
, x40_thermalHeat(thermalHeat)
|
||||
, x44_xrayFogDistance(xrayFogDistance)
|
||||
, x48_worldLightingLevel(worldLightingLevel)
|
||||
, x4c_skybox(skybox)
|
||||
, x50_phazon(phazonType)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -44,24 +44,11 @@ void CScriptAreaAttributes::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
||||
}
|
||||
}
|
||||
|
||||
bool CScriptAreaAttributes::GetNeedsSky() const
|
||||
{
|
||||
return x34_24_showSkybox;
|
||||
}
|
||||
bool CScriptAreaAttributes::GetNeedsSky() const { return x34_24_showSkybox; }
|
||||
|
||||
bool CScriptAreaAttributes::GetNeedsEnvFx() const
|
||||
{
|
||||
return x38_envFx != EEnvFxType::None;
|
||||
}
|
||||
bool CScriptAreaAttributes::GetNeedsEnvFx() const { return x38_envFx != EEnvFxType::None; }
|
||||
|
||||
float CScriptAreaAttributes::GetThermalHeat() const
|
||||
{
|
||||
return x40_thermalHeat;
|
||||
}
|
||||
|
||||
float CScriptAreaAttributes::GetWorldLightingLevel() const
|
||||
{
|
||||
return x48_worldLightingLevel;
|
||||
}
|
||||
float CScriptAreaAttributes::GetThermalHeat() const { return x40_thermalHeat; }
|
||||
|
||||
float CScriptAreaAttributes::GetWorldLightingLevel() const { return x48_worldLightingLevel; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user