Skip to content

Commit 732039c

Browse files
committed
feat(log): add log module functions to Log type
1 parent 4c74244 commit 732039c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lua/types.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@
232232
---@field current_run_file? string Path to the current run's log file
233233
---@field pending_logs? table<string, PendingLog> Map of pending log entries awaiting conditions
234234
---@field previous_game_state? G Game state before function call
235+
---@field init fun(self: Log) Initializes the logger by setting up hooks
236+
---@field write fun(self: Log, original_function: function, function_call: FunctionCall, ...) Writes a log entry to the JSONL file
237+
---@field update fun(self: Log) Processes pending logs by checking completion conditions
235238

236239
---@class PendingLog
237240
---@field log_entry table The log entry data to be written when condition is met

0 commit comments

Comments
 (0)