blob: ba60a8c3a25c8be17b27e2453b6569e3f0a69719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#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;
};
}
|