Module:Overview: Difference between revisions
Thanathros (talk | contribs) (Created page with "local p = {}; maincast = { "Ami", "Ayane", "Chika" } sidecast = { "Maki", "Wakana" } function p.prev() return "" end function p.list() return "" end function p.nex...") |
Thanathros (talk | contribs) No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
local p = {}; | local p = {}; | ||
_G.maincastindex = 0 | |||
_G.sidecastindex = 0 | |||
maincast = { | maincast = { | ||
"Ami", | [0] = "Ami", | ||
"Ayane", | [1] = "Ayane", | ||
"Chika" | [2] = "Chika" | ||
} | } | ||
sidecast = { | sidecast = { | ||
"Maki", | [0] = "Maki", | ||
"Wakana" | [1] = "Wakana" | ||
} | } | ||
function p.prev() | function p.prev() | ||
return | return _G.maincastindex - 1; | ||
end | end | ||
function p.list() | function p.list() | ||
return | return unpack(maincast) | ||
end | end | ||
function p.next() | function p.next() | ||
return | return _G.maincastindex + 1; | ||
end | end | ||
return p; |
Latest revision as of 00:57, 17 December 2021
Documentation for this module may be created at Module:Overview/doc
local p = {}; _G.maincastindex = 0 _G.sidecastindex = 0 maincast = { [0] = "Ami", [1] = "Ayane", [2] = "Chika" } sidecast = { [0] = "Maki", [1] = "Wakana" } function p.prev() return _G.maincastindex - 1; end function p.list() return unpack(maincast) end function p.next() return _G.maincastindex + 1; end return p;