mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
Create minimap core plugin based on gridworld plugin
This commit is contained in:
1 parent
f31fb535df
commit
f7658e1118
14 files changed
+1129
No files matched your search
@@ -0,0 +1,39 @@
|
||||
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,
|
||||
],
|
||||
};
|
||||
Reference in new issue
Block a user