static duk_ret_t ParticleSystem_ViewEnabled(duk_context* ctx) { ParticleSystem* thisObj = GetThisWeakObject<ParticleSystem>(ctx); bool ret = thisObj->ViewEnabled(); duk_push_boolean(ctx, ret); return 1; }