aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/BehaviorScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/BehaviorScript.cpp')
-rw-r--r--src/crepe/api/BehaviorScript.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/crepe/api/BehaviorScript.cpp b/src/crepe/api/BehaviorScript.cpp
index af7572c..e1c06b0 100644
--- a/src/crepe/api/BehaviorScript.cpp
+++ b/src/crepe/api/BehaviorScript.cpp
@@ -13,3 +13,21 @@ BehaviorScript & GameObject::add_component<BehaviorScript>() {
ComponentManager & mgr = this->mediator.component_manager;
return mgr.add_component<BehaviorScript>(this->id, this->mediator);
}
+
+BehaviorScript::BehaviorScript(const BehaviorScript & other) : mediator(other.mediator), Component(other.game_object_id) {
+ Log::logf("COPY CONSTRUCTOR!!!");
+}
+
+BehaviorScript::BehaviorScript(BehaviorScript && other) : mediator(other.mediator), Component(other.game_object_id) {
+ Log::logf("MOVE CONSTRUCTOR!!!");
+}
+
+BehaviorScript & BehaviorScript::operator = (const BehaviorScript & other) {
+ Log::logf("COPY OPERATOR!!!");
+ return *this;
+}
+
+BehaviorScript & BehaviorScript::operator = (BehaviorScript && other) {
+ Log::logf("MOVE OPERATOR!!!");
+ return *this;
+}