2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-23 18:04:49 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include "Runtime/World/CEntity.hpp"
|
|
|
|
#include "Runtime/World/CEnvFxManager.hpp"
|
2016-04-23 18:04:49 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
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-12-19 18:27:58 +00:00
|
|
|
|
2016-04-23 18:04:49 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00: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 18:04:49 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
|
2016-10-02 03:06:20 +00:00
|
|
|
|
2018-12-08 05:30:43 +00: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 18:04:49 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|