Lerg
Lerg/extension-cas/cas
CAS Extension
- GitHub: Lerg/extension-cas — pinned to
e312ca3- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
https://github.com/Lerg/extension-cas/archive/e312ca31e3cf0becfcc357ea63c37831b5ab4261.zip— togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as cas from "cas"
- This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit,
- Asset Portal: extension-cas
Functions
cas.init(params: table)
Initializes the extension. This function has to be called first before trying to show any ads.
Parameters
params:table— Contains parameters for the call.
cas.validate_integration()
Prints to console SDK integration information.
cas.load(ad_type: number)
Loads a specified ad type. No need to call this function, the ads is loaded automatically.
Parameters
ad_type:number— cas.BANNER, cas.INTERSTITIAL or cas.REWARDED.
cas.is_loaded(ad_type: number): boolean
Returns true if the specified ad type has been loaded.
Parameters
ad_type:number— cas.BANNER, cas.INTERSTITIAL or cas.REWARDED.
Returns
is_loaded:boolean— Is loaded.
cas.show(ad_type: number)
cas.hide_banner()
Removes a loaded banner from the screen.
cas.set(param: number, value: number)
Changes settings.
Parameters
param:number— Parameter id.value:number— Value id.