Add IPC to templates and handle helper function server

This commit is contained in:
Cooldude2606 committed 2024-01-24 00:40:22 +00:00
1 parent 2916dcc58c
commit 58231cc02c
11 files changed
+78 -19

No files matched your search

+14 -3
View File
@@ -29,16 +29,19 @@ declare module "@clusterio/lib" {// [controller] //
}// [] //// [instance] //
export interface InstanceConfigFields {
"// plugin_name //.myInstanceField": string;
}// [] //// [ctl] //
export interface ControlConfigFields {
"// plugin_name //.myControlField": string;
}// [] //
}
export const plugin: lib.PluginDeclaration = {
name: "// plugin_name //",
title: "// plugin_name //",
description: "I didn't update my description",
description: "I didn't update my description",// [entry_points] //
// entry_points //
// [controller] //
controlConfigFields: {
// [] //// [controller] //
controllerConfigFields: {
"// plugin_name //.myControllerField": {
title: "My Controller Field",
description: "This should be removed",
@@ -61,6 +64,14 @@ export const plugin: lib.PluginDeclaration = {
type: "string",
initialValue: "Remove Me",
},
},// [] //// [ctl] //
controlConfigFields: {
"// plugin_name //.myControlField": {
title: "My Control Field",
description: "This should be removed",
type: "string",
initialValue: "Remove Me",
},
},// [] //
messages: [