Guest User

Untitled

a guest
Nov 5th, 2018
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #ifndef MYCOMPONENT_H
  4. #define MYCOMPONENT_H
  5.  
  6. #include <AzCore/Component/Component.h>
  7. #include <AzCore/Component/TickBus.h>
  8.  
  9. namespace MyProject123
  10. {
  11.     class MyComponent
  12.         : public AZ::Component,
  13.           public AZ::TickBus::Handler
  14.  
  15.     {
  16.     public:
  17.         AZ_COMPONENT(MyComponent, "{53C195D7-9D87-4B29-B964-16E08E728F36}");
  18.  
  19.         MyComponent();
  20.         virtual ~MyComponent();
  21.  
  22.         static void Reflect(AZ::ReflectContext* context);
  23.  
  24.         void Init() override;
  25.         void Activate() override;
  26.         void Deactivate() override;
  27.  
  28.         // AZ::TickBus
  29.         void OnTick(float deltaTime, AZ::ScriptTimePoint time);
  30.  
  31.     public:
  32.         int m_value;
  33.     };
  34. }
  35. #endif
RAW Paste Data