Module:Overview: Difference between revisions

No edit summary
No edit summary
Line 17: Line 17:


function p.prev()
function p.prev()
return _G.maincastindex-1;
return _G.maincastindex - 1;
end
end


Line 25: Line 25:


function p.next()
function p.next()
return _G.maincastindex-1;
return _G.maincastindex + 1;
end
end


return p;
return p;

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,0,2)
end

function p.next()
	return _G.maincastindex + 1;
end

return p;