metaforce/Runtime/World/CScriptTimer.hpp

30 lines
746 B
C++
Raw Permalink Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-04-19 14:25:26 -07:00
#include <string_view>
#include "Runtime/World/CEntity.hpp"
2016-04-19 14:25:26 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2018-12-07 21:30:43 -08:00
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 14:25:26 -07:00
public:
2021-05-26 07:00:57 -07:00
DEFINE_ENTITY
2018-12-07 21:30:43 -08:00
CScriptTimer(TUniqueId, std::string_view name, const CEntityInfo& info, float, float, bool, bool, bool);
void Accept(IVisitor& visitor) override;
void Think(float, CStateManager&) override;
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
2018-12-07 21:30:43 -08:00
bool IsTiming() const;
void StartTiming(bool isTiming);
void Reset(CStateManager&);
void ApplyTime(float, CStateManager&);
2016-04-19 14:25:26 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce