#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(); this->script = new T(); return *this; } }