metaforce/Runtime/World/CScriptAreaAttributes.hpp

37 lines
1.4 KiB
C++
Raw Permalink Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-04-23 11:04:49 -07:00
#include "Runtime/World/CEntity.hpp"
#include "Runtime/World/CEnvFxManager.hpp"
2016-04-23 11:04:49 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2018-12-07 21:30:43 -08:00
class CScriptAreaAttributes : public CEntity {
bool x34_24_showSkybox : 1;
EEnvFxType x38_envFx;
float x3c_envFxDensity;
float x40_thermalHeat;
float x44_xrayFogDistance;
float x48_worldLightingLevel;
CAssetId x4c_skybox;
EPhazonType x50_phazon;
2016-04-23 11:04:49 -07:00
public:
2021-05-26 07:00:57 -07:00
DEFINE_ENTITY
2018-12-07 21:30:43 -08:00
CScriptAreaAttributes(TUniqueId uid, const CEntityInfo& info, bool showSkybox, EEnvFxType fxType, float envFxDensity,
float thermalHeat, float xrayFogDistance, float worldLightingLevel, CAssetId skybox,
EPhazonType phazonType);
2016-04-23 11:04:49 -07:00
void Accept(IVisitor& visitor) override;
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
2018-12-07 21:30:43 -08:00
bool GetNeedsSky() const { return x34_24_showSkybox; }
bool GetNeedsEnvFx() const { return x38_envFx != EEnvFxType::None; }
CAssetId GetSkyModel() const { return x4c_skybox; }
EEnvFxType GetEnvFxType() const { return x38_envFx; }
float GetEnvFxDensity() const { return x3c_envFxDensity; }
float GetThermalHeat() const { return x40_thermalHeat; }
float GetXRayFogDistance() const { return x44_xrayFogDistance; }
float GetWorldLightingLevel() const { return x48_worldLightingLevel; }
EPhazonType GetPhazonType() const { return x50_phazon; }
2016-04-23 11:04:49 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce