2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-19 21:25:26 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <string_view>
|
|
|
|
#include "Runtime/World/CEntity.hpp"
|
2016-04-19 21:25:26 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class CScriptTimer : public CEntity {
|
|
|
|
float x34_time;
|
|
|
|
float x38_startTime;
|
|
|
|
float x3c_maxRandDelay;
|
|
|
|
bool x40_loop;
|
|
|
|
bool x41_autoStart;
|
|
|
|
bool x42_isTiming;
|
2016-04-19 21:25:26 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptTimer(TUniqueId, std::string_view name, const CEntityInfo& info, float, float, bool, bool, bool);
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
|
2018-12-08 05:30:43 +00:00
|
|
|
bool IsTiming() const;
|
|
|
|
void StartTiming(bool isTiming);
|
|
|
|
void Reset(CStateManager&);
|
|
|
|
void ApplyTime(float, CStateManager&);
|
2016-04-19 21:25:26 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|