forked from rpbpolis/spic-prj-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BehaviourScript.hpp
47 lines (38 loc) · 1.24 KB
/
BehaviourScript.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef BEHAVIOURSCRIPT_H_
#define BEHAVIOURSCRIPT_H_
#include "Component.hpp"
#include "Collider.hpp"
namespace spic {
class BehaviourScript : public Component {
public:
/**
* @brief TODO
* @spicapi
*/
virtual void OnStart();
/**
* @brief TODO
* @spicapi
*/
virtual void OnUpdate();
/**
* @brief Sent when another object enters a trigger collider
* attached to this object (2D physics only).
* @spicapi
*/
virtual void OnTriggerEnter2D(const Collider& collider);
/**
* @brief Sent when another object leaves a trigger collider
* attached to this object (2D physics only).
* @spicapi
*/
virtual void OnTriggerExit2D(const Collider& collider);
/**
* @brief Sent each frame where another object is within a trigger
* collider attached to this object (2D physics only).
* @spicapi
*/
virtual void OnTriggerStay2D(const Collider& collider);
};
}
#endif // BEHAVIOURSCRIPT_H_