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