-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.js
More file actions
35 lines (29 loc) · 1.13 KB
/
plugin.js
File metadata and controls
35 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'use strict'
const SDK = globalThis.SDK
{
const PLUGIN_ID = 'PlaygamaBridge'
const PLUGIN_CATEGORY = 'platform-specific'
const PLUGIN_CLASS = (SDK.Plugins.PlaygamaBridge = class PlaygamaBridgePlugin extends SDK.IPluginBase {
constructor() {
super(PLUGIN_ID)
SDK.Lang.PushContext('plugins.' + PLUGIN_ID.toLowerCase())
this._info.SetName(lang('.name'))
this._info.SetDescription(lang('.description'))
this._info.SetCategory(PLUGIN_CATEGORY)
this._info.SetAuthor(lang('.author'))
this._info.SetHelpUrl(lang('.help-url'))
this._info.SetIsSingleGlobal(true)
this._info.SetSupportedRuntimes(['c3'])
this._info.AddFileDependency({
filename: 'c3runtime/playgama-bridge.js',
type: 'copy-to-output',
fileType: 'application/javascript'
})
SDK.Lang.PushContext('.properties')
this._info.SetProperties([]);
SDK.Lang.PopContext()
SDK.Lang.PopContext()
}
})
PLUGIN_CLASS.Register(PLUGIN_ID, PLUGIN_CLASS)
}