mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
Complete template files
This commit is contained in:
9 files changed
+227
-10
No files matched your search
@@ -4,8 +4,8 @@ import { Type, Static } from "@sinclair/typebox";
|
||||
export class PluginExampleEvent {
|
||||
declare ["constructor"]: typeof PluginExampleEvent;
|
||||
static type = "event" as const;
|
||||
static src = ["host"] as const;
|
||||
static dst = "controller" as const;
|
||||
static src = ["host", "control"] as const;
|
||||
static dst = ["controller", "host"] as const;
|
||||
static plugin = "// plugin_name //" as const;
|
||||
static permission = "// plugin_name //.example.permission.event";
|
||||
|
||||
@@ -26,10 +26,10 @@ export class PluginExampleEvent {
|
||||
}
|
||||
|
||||
export class PluginExampleRequest {
|
||||
declare ["constructor"]: typeof PluginExampleEvent;
|
||||
declare ["constructor"]: typeof PluginExampleRequest;
|
||||
static type = "request" as const;
|
||||
static src = ["host"] as const;
|
||||
static dst = "controller" as const;
|
||||
static src = ["host", "control"] as const;
|
||||
static dst = ["controller", "host"] as const;
|
||||
static plugin = "// plugin_name //" as const;
|
||||
static permission = "// plugin_name //.example.permission.request";
|
||||
|
||||
|
||||
Reference in new issue
Block a user