mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-23 15:22: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"
|
#include "Entity.h"
|
||||||
|
|
||||||
CollectibleComponent::CollectibleComponent(Entity* parent) : Component(parent) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void CollectibleComponent::Startup() {
|
void CollectibleComponent::Startup() {
|
||||||
m_CollectibleId = GetParentEntity()->GetVarAs<int32_t>(u"collectible_id");
|
m_CollectibleId = GetParentEntity()->GetVarAs<int32_t>(u"collectible_id");
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
class CollectibleComponent : public Component {
|
class CollectibleComponent : public Component {
|
||||||
public:
|
public:
|
||||||
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::COLLECTIBLE;
|
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::COLLECTIBLE;
|
||||||
CollectibleComponent(Entity* parent);
|
CollectibleComponent(Entity* parent) : Component(parent) { };
|
||||||
|
|
||||||
void Startup() override;
|
void Startup() override;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user