diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/crepe/api/Transform.cpp | 5 | ||||
| -rw-r--r-- | src/crepe/api/Transform.h | 1 | 
2 files changed, 6 insertions, 0 deletions
| diff --git a/src/crepe/api/Transform.cpp b/src/crepe/api/Transform.cpp index 2a36e67..64ad81c 100644 --- a/src/crepe/api/Transform.cpp +++ b/src/crepe/api/Transform.cpp @@ -13,4 +13,9 @@ Transform::Transform(uint32_t game_id, Point point, double rot,  	: Component(game_id), position(point), rotation(rot), scale(scale) {  	dbg_trace();  } +  Transform::~Transform() { dbg_trace(); } + +int Transform::get_instances_max() const { +	return 1; +} diff --git a/src/crepe/api/Transform.h b/src/crepe/api/Transform.h index 5d45060..85e16b4 100644 --- a/src/crepe/api/Transform.h +++ b/src/crepe/api/Transform.h @@ -16,6 +16,7 @@ class Transform : public Component {  public:  	Transform(uint32_t id, Point, double, double);  	~Transform(); +	int get_instances_max() const;  	//! Translation (shift)  	Point position;  	//! Rotation, in radians |