mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Extra touch ups
This commit is contained in:
7 files changed
+12
-21
No files matched your search
@@ -0,0 +1,3 @@
|
||||
--- Expose any globals here, typically just your control file if you want to access it through rcon or commands
|
||||
-- luacheck: globals __plugin_name__
|
||||
__plugin_name__ = require("modules/__plugin_name__/control")
|
||||
@@ -5,7 +5,7 @@
|
||||
],
|
||||
"require": [
|
||||
//%if instance
|
||||
"module_exports.lua"
|
||||
"globals.lua"
|
||||
//%endif
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
local MyModule = require("./control")
|
||||
//%if instance
|
||||
|
||||
--- Can contain anything you plan to use with send_rcon including functions, modules, or data
|
||||
-- luacheck: globals ipc___plugin_name__
|
||||
ipc___plugin_name__ = MyModule
|
||||
//%endif
|
||||
|
||||
--- Can contain anything you want to allow other plugins to have access to, this example exposes the whole module
|
||||
return MyModule
|
||||
--- Can contain anything you want to allow other plugins to have access to, this example exposes the control file
|
||||
-- Access the exports from other modules using require("modules/__plugin_name__")
|
||||
return require("modules/__plugin_name__/control")
|
||||
Reference in new issue
Block a user