UNPKG

@clusterio/plugin-global_chat

Version:

Clusterio plugin forwarding between Factorio servers

26 lines 796 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChatEvent = void 0; const typebox_1 = require("@sinclair/typebox"); class ChatEvent { instanceName; content; static type = "event"; static src = ["control", "instance"]; static dst = "instance"; static plugin = "global_chat"; static permission = null; constructor(instanceName, content) { this.instanceName = instanceName; this.content = content; } static jsonSchema = typebox_1.Type.Object({ "instanceName": typebox_1.Type.String(), "content": typebox_1.Type.String(), }); static fromJSON(json) { return new this(json.instanceName, json.content); } } exports.ChatEvent = ChatEvent; //# sourceMappingURL=messages.js.map