aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/BehaviorScript.h
blob: dd04dc0d58ac9d4052755575429a30c4e67e6303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "../Script.h"
#include "../Component.h"

namespace crepe::api {

class BehaviorScript : public Script, public Component {
protected:
	// only allow ComponentManager to instantiate scripts
	friend class ComponentManager;
	BehaviorScript();
public:
	// but allow uniqe_ptr to call the destructor (THIS IS VERY IMPORTANT)
	virtual ~BehaviorScript() = default;

	static BehaviorScript * component;
};

}