mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 23:04:57 +00:00
20 lines
376 B
Lua
20 lines
376 B
Lua
---@class Schedule
|
|
local M = {}
|
|
|
|
---@class ScheduleEntry
|
|
---@field scene string
|
|
|
|
---@param schedule ScheduleEntry[]
|
|
---@param current_index? number
|
|
---@return string?
|
|
function M.next_scene(schedule, current_index)
|
|
local index = current_index or 1
|
|
local entry = schedule[index]
|
|
if not entry then
|
|
return nil
|
|
end
|
|
return entry.scene
|
|
end
|
|
|
|
return M
|