2016-04-20 21:44:18 +00:00
|
|
|
#include "CScriptGenerator.hpp"
|
2016-12-22 02:48:22 +00:00
|
|
|
#include "CStateManager.hpp"
|
2016-04-20 21:44:18 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CScriptGenerator::CScriptGenerator(TUniqueId uid, const std::string& name, const CEntityInfo& info,
|
2016-05-03 08:27:28 +00:00
|
|
|
u32 w1, bool b1, const zeus::CVector3f& vec1, bool b2, bool active, float minScale, float maxScale)
|
|
|
|
: CEntity(uid, info, active, name),
|
|
|
|
x34_(w1),
|
|
|
|
x38_24_(b1),
|
|
|
|
x38_25_(b2),
|
|
|
|
x3c_(vec1),
|
|
|
|
x48_minScale(minScale),
|
|
|
|
x4c_maxScale(maxScale)
|
2016-04-20 21:44:18 +00:00
|
|
|
{
|
|
|
|
}
|
2016-05-03 08:27:28 +00:00
|
|
|
|
|
|
|
void CScriptGenerator::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr)
|
|
|
|
{
|
2016-12-22 02:48:22 +00:00
|
|
|
if (msg == EScriptObjectMessage::SetToZero && GetActive())
|
2016-05-03 08:27:28 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CEntity::AcceptScriptMsg(msg, objId, stateMgr);
|
|
|
|
}
|
2016-04-20 21:44:18 +00:00
|
|
|
}
|