Add Factorio to Clusterio communication API

Add send_json to the Clusterio module's API which allows sending
arbitrary tables serialized as JSON to plugins that listen on the
channel specified.
This commit is contained in:
Hornwitser committed 2020-01-04 17:34:16 +01:00
1 parent 6cf16cc09e
commit b8fb73f863
5 files changed
+203 -10

No files matched your search

-10
View File
@@ -12,7 +12,6 @@ Contents
- [Factorio Mods](#factorio-mods)
- [Factorio Scenarios](#factorio-scenarios)
- [event_handler interface](#event_handler-interface)
- [Communicating between Clusterio and Factorio](#communicating-between-clusterio-and-factorio)
- [Communicating with Clusterio](#communicating-with-clusterio)
- [Clusterio Modules](#clusterio-modules)
- [Clusterio Plugins](#clusterio-plugins)
@@ -158,15 +157,6 @@ There's also the `add_libraries` function exported by event_handler,
which accepts a table and calls `add_lib` for each value in the table.
Communicating between Clusterio and Factorio
--------------------------------------------
There is currently no standard interface for moving data between
Clusterio and Factorio. It's mostly a mix of RCON commands initiated
from Clusterio plugins and writing out files with `game.write_file` that
is picked up and parsed by plugins.
Communicating with Clusterio
----------------------------