#pragma once #include #include "../util/log.h" #include "BehaviorScript.h" #include "Script.h" namespace crepe { template BehaviorScript & BehaviorScript::set_script() { dbg_trace(); static_assert(std::is_base_of::value); Script * s = new T(); s->parent_ref = this; this->script = std::unique_ptr