mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +00:00
move ctor to header for collectible
This commit is contained in:
parent
c6063aac66
commit
7c1265911c
@ -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");
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user