51 lines
1.5 KiB
JavaScript
51 lines
1.5 KiB
JavaScript
System.register(["cc"], function (_export, _context) {
|
|
"use strict";
|
|
|
|
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, _dec, _class, _class2, _crd, ccclass, SdkMgr;
|
|
|
|
return {
|
|
setters: [function (_cc) {
|
|
_cclegacy = _cc.cclegacy;
|
|
__checkObsolete__ = _cc.__checkObsolete__;
|
|
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
|
_decorator = _cc._decorator;
|
|
Component = _cc.Component;
|
|
}],
|
|
execute: function () {
|
|
_crd = true;
|
|
|
|
_cclegacy._RF.push({}, "6fbd6RxA9dOzJEaowwyH1c6", "SdkMgr", undefined);
|
|
|
|
__checkObsolete__(['_decorator', 'Component']);
|
|
|
|
({
|
|
ccclass
|
|
} = _decorator);
|
|
/**
|
|
* Integration seam for a future rewarded-placement provider.
|
|
* The project currently ships without any advertising or platform SDK.
|
|
*/
|
|
|
|
_export("SdkMgr", SdkMgr = (_dec = ccclass('SdkMgr'), _dec(_class = (_class2 = class SdkMgr extends Component {
|
|
onLoad() {
|
|
SdkMgr.instance = this;
|
|
}
|
|
/**
|
|
* SDK-free default: grant the gameplay reward immediately.
|
|
* Replace this method body with a provider call when an SDK is added later.
|
|
*/
|
|
|
|
|
|
requestReward(onGranted) {
|
|
onGranted == null || onGranted();
|
|
}
|
|
|
|
}, _class2.instance = void 0, _class2)) || _class));
|
|
|
|
_cclegacy._RF.pop();
|
|
|
|
_crd = false;
|
|
}
|
|
};
|
|
});
|
|
//# sourceMappingURL=398d00769bffaa6da8f5ea12e7941d4a67eac52a.js.map
|