publicModSDKGlobalAPI
Index
Properties
readonlyapiVersion
The API version of the SDK itself. Attempting to load two different SDK versions will fail.
readonlyerrorReporterHooks
Internal API, please DO NOT USE
Type declaration
apiEndpointEnter: (fn, mod) => () => void
Parameters
fn: string
mod: string
Returns () => void
Returns void
hookChainExit: (fn, patchMods) => () => void
Parameters
fn: string
patchMods: ReadonlySet<string>
Returns () => void
Returns void
hookEnter: (fn, mod) => () => void
Parameters
fn: string
mod: string
Returns () => void
Returns void
readonlyversion
The version of the SDK itself. Attempting to load two different SDK versions will warn, but work as long as apiVersion is same.
Methods
getModsInfo
Get info about all registered mods
Returns ModSDKModInfo[]
getPatchingInfo
Get info about all modified functions
Returns Map<string, PatchedFunctionInfo>
registerMod
Register a mod, receiving access to the mod API
Parameters
info: ModSDKModInfo
Info about the mod, necessary to register the mod
optionaloptions: ModSDKModOptions
[OPTIONAL] Options the mod can specify for ModSDK
Returns ModSDKModAPI
The API usable by mod.
The global API of the SDK
Accessible using the exported value or as
window.bcModSdk