From e12a68a74d9527d4becde122da4ff1ad6550564e Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 5 Jan 2024 17:15:47 +1100 Subject: split lua stubs into one set for ldoc, and one set for lua-ls --- luals-stubs/queue.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 luals-stubs/queue.lua (limited to 'luals-stubs/queue.lua') diff --git a/luals-stubs/queue.lua b/luals-stubs/queue.lua new file mode 100644 index 00000000..0c63b8c1 --- /dev/null +++ b/luals-stubs/queue.lua @@ -0,0 +1,11 @@ +--- @meta + +--- Properties and functions for inspecting and manipulating the track playback queue +--- @class queue +--- @field position Property The index in the queue of the currently playing track. This may be zero if the queue is empty. Writeable. +--- @field size Property The total number of tracks in the queue, including tracks which have already been played. +--- @field replay Property Whether or not the queue will be restarted after the final track is played. Writeable. +--- @field random Property Determines whether, when progressing to the next track in the queue, the next track will be chosen randomly. The random selection algorithm used is a Miller Shuffle, which guarantees that no repeat selections will be made until every item in the queue has been played. Writeable. +local queue = {} + +return queue -- cgit v1.2.3