Remove shared pointer, ODR of componentType variable

This commit is contained in:
David Markowitz
2023-06-09 01:22:45 -07:00
parent ec00f5fd9d
commit 62aa863997
49 changed files with 60 additions and 75 deletions

View File

@@ -16,7 +16,7 @@
*/
class SwitchComponent : public Component {
public:
static const eReplicaComponentType ComponentType = eReplicaComponentType::SWITCH;
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::SWITCH;
SwitchComponent(Entity* parent);
~SwitchComponent() override;
@@ -75,7 +75,7 @@ private:
/**
* Attached rebuild component.
*/
std::shared_ptr<RebuildComponent> m_Rebuild;
RebuildComponent* m_Rebuild;
/**
* If the switch is on or off.