HatchitGame
ht_test_component.h
1 
15 #pragma once
16 
17 #include <ht_component.h>
18 
19 namespace Hatchit {
20  namespace Game {
21 
22  class TestComponent : public Component
23  {
24  public:
25  TestComponent(void) = default;
26 
27  virtual Core::JSON VSerialize(void) override;
28  virtual bool VDeserialize(const Core::JSON& jsonObject) override;
29 
30  void VOnInit() override;
31  void VOnUpdate() override;
32  Component* VClone(void) const override;
33  virtual Core::Guid VGetComponentId(void) const override;
34  protected:
35  void VOnEnabled() override;
36  void VOnDisabled() override;
37  void VOnDestroy() override;
38 
39  private:
40  GameObject* testObject;
41 
42  };
43  }
44 }
Definition: ht_test_component.h:22
void VOnUpdate() override
Called once per frame while the GameObject is enabled.
Definition: ht_test_component.cpp:34
virtual Core::Guid VGetComponentId(void) const override
Retrieves the id associated with this class of Component.
Definition: ht_test_component.cpp:50
Definition: ht_component.h:42
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_glfwkeyboard.h:21
Definition: ht_gameobject.h:48
void VOnEnabled() override
Called when the Component is enabled.
Definition: ht_test_component.cpp:55
void VOnDestroy() override
Called when the GameObject is destroyed/deleted.
Definition: ht_test_component.cpp:65
void VOnDisabled() override
Called when the Component is disabled.
Definition: ht_test_component.cpp:60
Component * VClone(void) const override
Creates a copy of this Component.
Definition: ht_test_component.cpp:39
void VOnInit() override
Called when the GameObject is created to initialize all values.
Definition: ht_test_component.cpp:29