#include #include #include "../common/types.h" #include "types.h" CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) { switch(operation) { case CR_LOAD: entt::locator::reset(static_cast(ctx->userdata)->handle); break; case CR_STEP: entt::locator::value().value = static_cast(ctx->userdata)->value; break; case CR_UNLOAD: case CR_CLOSE: break; } return 0; }