diff --git a/src/component/test.cpp b/src/component/test.cpp index f660850..389814f 100644 --- a/src/component/test.cpp +++ b/src/component/test.cpp @@ -2,6 +2,7 @@ #include "loader/component_loader.hpp" #include +#include "gsc.hpp" namespace test { @@ -14,6 +15,15 @@ namespace test public: void post_unpack() override { + gsc::function::add("testfunc", []() + { + game::Com_Printf(game::CON_CHANNEL_DONT_FILTER, "this is a test builtin\n"); + }); + + gsc::method::add("testmeth", [](game::scr_entref_t ref) + { + game::Com_Printf(game::CON_CHANNEL_DONT_FILTER, "this is a test builtin on ent %d\n", ref.entnum); + }); } private: