2016-04-18 01:58:13 +00:00
|
|
|
#ifndef __URDE_CACTORPARAMETERS_HPP__
|
|
|
|
#define __URDE_CACTORPARAMETERS_HPP__
|
|
|
|
|
|
|
|
#include "CLightParameters.hpp"
|
|
|
|
#include "CScannableParameters.hpp"
|
|
|
|
#include "CVisorParameters.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CActorParameters
|
|
|
|
{
|
2016-04-19 00:17:49 +00:00
|
|
|
friend class ScriptLoader;
|
2017-02-21 03:29:28 +00:00
|
|
|
CLightParameters x0_lightParms;
|
2016-04-18 01:58:13 +00:00
|
|
|
CScannableParameters x40_scanParms;
|
2017-08-13 05:26:14 +00:00
|
|
|
std::pair<CAssetId, CAssetId> x44_xrayAssets = {};
|
|
|
|
std::pair<CAssetId, CAssetId> x4c_thermalAssets = {};
|
2016-04-18 01:58:13 +00:00
|
|
|
CVisorParameters x54_visorParms;
|
2017-05-10 10:03:29 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x58_24_ : 1;
|
|
|
|
bool x58_25_thermalHeat : 1;
|
|
|
|
bool x58_26_ : 1;
|
|
|
|
bool x58_27_ : 1;
|
|
|
|
};
|
|
|
|
u32 _dummy = 0;
|
|
|
|
};
|
2017-02-28 07:31:14 +00:00
|
|
|
float x5c_ = 0.f;
|
|
|
|
float x60_ = 0.f;
|
|
|
|
float x64_ = 0.f;
|
2017-02-21 03:29:28 +00:00
|
|
|
|
2016-04-18 01:58:13 +00:00
|
|
|
public:
|
2017-05-10 10:03:29 +00:00
|
|
|
CActorParameters() : x58_24_(true), x58_25_thermalHeat(false), x58_26_(false), x58_27_(false) {}
|
2016-04-18 01:58:13 +00:00
|
|
|
CActorParameters(const CLightParameters& lightParms, const CScannableParameters& scanParms,
|
2017-08-13 05:26:14 +00:00
|
|
|
const std::pair<CAssetId, CAssetId>& xrayAssets, const std::pair<CAssetId, CAssetId>& thermalAssets,
|
2017-05-10 10:03:29 +00:00
|
|
|
const CVisorParameters& visorParms, bool b1, bool thermalHeat, bool c, bool d)
|
2017-02-21 03:29:28 +00:00
|
|
|
: x0_lightParms(lightParms)
|
|
|
|
, x40_scanParms(scanParms)
|
|
|
|
, x44_xrayAssets(xrayAssets)
|
|
|
|
, x4c_thermalAssets(thermalAssets)
|
|
|
|
, x54_visorParms(visorParms)
|
2017-05-10 10:03:29 +00:00
|
|
|
, x58_24_(b1)
|
|
|
|
, x58_25_thermalHeat(thermalHeat)
|
|
|
|
, x58_26_(c)
|
|
|
|
, x58_27_(d)
|
2017-02-21 03:29:28 +00:00
|
|
|
{
|
|
|
|
}
|
2016-12-10 02:35:20 +00:00
|
|
|
CActorParameters Scannable(const CScannableParameters& sParms) const
|
|
|
|
{
|
|
|
|
CActorParameters aParms = *this;
|
|
|
|
aParms.x40_scanParms = sParms;
|
|
|
|
return aParms;
|
|
|
|
}
|
|
|
|
|
2017-02-21 03:29:28 +00:00
|
|
|
static CActorParameters None() { return CActorParameters(); }
|
2016-04-22 20:22:45 +00:00
|
|
|
|
2016-05-03 08:27:28 +00:00
|
|
|
void SetVisorParameters(const CVisorParameters& vParams) { x54_visorParms = vParams; }
|
2017-02-21 03:29:28 +00:00
|
|
|
const CVisorParameters& GetVisorParameters() const { return x54_visorParms; }
|
|
|
|
const CLightParameters& GetLightParameters() const { return x0_lightParms; }
|
2017-08-25 06:18:09 +00:00
|
|
|
bool HasThermalHeat() const { return x58_25_thermalHeat; }
|
2016-04-18 01:58:13 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CACTORPARAMETERS_HPP__
|