Advertisement
Ununquadium

ExampleComponent

Jan 2nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #pragma once
  2. #include "Component.h"
  3.  
  4. struct ExampleComponent : public Component
  5. {
  6.     float x;
  7.     virtual void Initialize() { x = 2.0f; }
  8.     virtual void Cleanup()    { x = 3.0f; }
  9.     virtual void Setup()      { x = 1.0f; }
  10. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement