2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-05-13 03:13:34 +00:00
|
|
|
|
|
|
|
#include "CPhysicsActor.hpp"
|
2017-09-12 15:27:48 +00:00
|
|
|
#include "CPlayerState.hpp"
|
2016-05-13 03:13:34 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
class CScriptPickup : public CPhysicsActor {
|
|
|
|
CPlayerState::EItemType x258_itemType;
|
2019-02-18 05:47:46 +00:00
|
|
|
s32 x25c_amount;
|
|
|
|
s32 x260_capacity;
|
2018-12-08 05:30:43 +00:00
|
|
|
float x264_possibility;
|
2019-02-18 05:47:46 +00:00
|
|
|
float x268_fadeInTime;
|
|
|
|
float x26c_lifeTime;
|
|
|
|
float x270_curTime = 0.f;
|
|
|
|
float x274_tractorTime;
|
|
|
|
float x278_delayTimer;
|
|
|
|
TLockedToken<CGenDescription> x27c_pickupParticleDesc;
|
2017-09-12 15:27:48 +00:00
|
|
|
|
2019-02-18 05:47:46 +00:00
|
|
|
bool x28c_24_generated : 1;
|
|
|
|
bool x28c_25_inTractor : 1;
|
|
|
|
bool x28c_26_enableTractorTest : 1;
|
2017-09-12 15:27:48 +00:00
|
|
|
|
2016-05-13 03:13:34 +00:00
|
|
|
public:
|
2019-02-18 05:47:46 +00:00
|
|
|
CScriptPickup(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
|
|
|
CModelData&& mData, const CActorParameters& aParams, const zeus::CAABox& aabb,
|
|
|
|
CPlayerState::EItemType itemType, s32 amount, s32 capacity, CAssetId pickupEffect,
|
|
|
|
float possibility, float lifeTime, float fadeInTime, float startDelay, bool active);
|
2017-01-15 03:07:01 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
|
|
|
void Think(float, CStateManager&);
|
|
|
|
void Touch(CActor&, CStateManager&);
|
2019-01-29 08:28:35 +00:00
|
|
|
rstl::optional<zeus::CAABox> GetTouchBounds() const { return CPhysicsActor::GetBoundingBox(); }
|
2018-12-08 05:30:43 +00:00
|
|
|
float GetPossibility() const { return x264_possibility; }
|
2019-02-18 05:47:46 +00:00
|
|
|
CPlayerState::EItemType GetItem() const { return x258_itemType; }
|
|
|
|
void SetGenerated() { x28c_24_generated = true; }
|
2016-05-13 03:13:34 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|