blob: 12c347a3bacd4eda198c308768ea5e7e1de1ea26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef __JIN_TOOLS_COMPONENT_H
#define __JIN_TOOLS_COMPONENT_H
#include "../../modules.h"
#if JIN_MODULES_TOOLS && JIN_TOOLS_COMPONENT
namespace jin
{
namespace tools
{
class GameObject;
class Component
{
public:
Component(GameObject* obj)
: gameObject(obj)
{}
virtual void update(float dt) = 0;
private:
GameObject* gameObject;
};
} // tools
} // jin
#endif // JIN_MODULES_TOOLS && JIN_TOOLS_COMPONENT
#endif // __JIN_TOOLS_COMPONENT_H
|