mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
40 lines
938 B
TypeScript
40 lines
938 B
TypeScript
import * as lib from "@clusterio/lib";
|
|
|
|
import {
|
|
TileDataEvent,
|
|
RefreshTileDataRequest,
|
|
GetTileDataRequest,
|
|
GetInstanceBoundsRequest,
|
|
} from "./messages";
|
|
|
|
// Define permissions
|
|
lib.definePermission({
|
|
name: "minimap.view",
|
|
title: "View Minimap",
|
|
description: "View the interactive minimap of Factorio instances.",
|
|
grantByDefault: true,
|
|
});
|
|
|
|
lib.definePermission({
|
|
name: "minimap.refresh",
|
|
title: "Refresh Minimap",
|
|
description: "Refresh the minimap data for Factorio instances.",
|
|
grantByDefault: true,
|
|
});
|
|
|
|
export const plugin: lib.PluginDeclaration = {
|
|
name: "minimap",
|
|
title: "Minimap",
|
|
description: "Provides interactive minimaps of Factorio instances with real-time tile and entity data.",
|
|
instanceEntrypoint: "dist/node/instance",
|
|
controllerEntrypoint: "dist/node/controller",
|
|
webEntrypoint: "./web",
|
|
|
|
messages: [
|
|
TileDataEvent,
|
|
RefreshTileDataRequest,
|
|
GetTileDataRequest,
|
|
GetInstanceBoundsRequest,
|
|
],
|
|
};
|