move ctor to header for collectible

This commit is contained in:
David Markowitz 2023-06-26 22:59:57 -07:00
parent c6063aac66
commit 7c1265911c
2 changed files with 1 additions and 5 deletions

View File

@ -2,10 +2,6 @@
#include "Entity.h"
CollectibleComponent::CollectibleComponent(Entity* parent) : Component(parent) {
}
void CollectibleComponent::Startup() {
m_CollectibleId = GetParentEntity()->GetVarAs<int32_t>(u"collectible_id");
}

View File

@ -9,7 +9,7 @@
class CollectibleComponent : public Component {
public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::COLLECTIBLE;
CollectibleComponent(Entity* parent);
CollectibleComponent(Entity* parent) : Component(parent) { };
void Startup() override;