This commit is contained in:
Martin Slachta
2026-07-18 14:31:15 +02:00
commit a04f0dc262
3343 changed files with 1140208 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#include <cr.h>
#include <entt/locator/locator.hpp>
#include "../../../common/boxed_type.h"
#include "userdata.h"
CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) {
switch(operation) {
case CR_LOAD:
entt::locator<test::boxed_int>::reset(static_cast<userdata *>(ctx->userdata)->handle);
break;
case CR_STEP:
entt::locator<test::boxed_int>::value().value = static_cast<userdata *>(ctx->userdata)->value;
break;
case CR_UNLOAD:
case CR_CLOSE:
break;
}
return 0;
}