1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-29 22:47:52 +02:00

Continue on refactor

Rename from CreatedEvents to CustomEvents
This commit is contained in:
Gerkiz
2025-10-22 07:41:10 +02:00
parent 38ec1a9a72
commit 68955330ae
54 changed files with 1417 additions and 957 deletions

View File

@@ -6,7 +6,7 @@ local Poll =
}
local Token = require 'utils.token'
local Server = require 'utils.server'
local CreatedEvents = require 'utils.created_events'
local CustomEvents = require 'utils.created_events'
--- This module is for the web server to call functions and raise events.
-- Not intended to be called by scripts.
@@ -28,11 +28,11 @@ ServerCommands.raise_scenario_changed = Server.raise_scenario_changed
ServerCommands.get_tracked_scenario = Server.get_tracked_scenario
function ServerCommands.server_started()
script.raise_event(CreatedEvents.events.on_server_started, {})
script.raise_event(CustomEvents.events.on_server_started, {})
end
function ServerCommands.changes_detected()
script.raise_event(CreatedEvents.events.on_changes_detected, {})
script.raise_event(CustomEvents.events.on_changes_detected, {})
end
ServerCommands.set_time = Server.set_time