
local shiftDir = "script/shifts/"

function getLevelIdxFromFileName(fileName)
	return table.index_of(shifts, fileName)
end

function getLevelIdxFromShiftIdx(roomIdx, shiftIdx)
	return getLevelIdxFromFileName(shiftDir.."shift"..roomIdx.."_"..shiftIdx..".lua")
end

shifts = {
	shiftDir.."intro.lua",
	shiftDir.."intro2.lua",

	shiftDir.."shift1_1.lua",
	shiftDir.."shift1_2.lua",
	shiftDir.."shift1_3.lua",
	shiftDir.."shift1_4.lua",
	shiftDir.."shift1_5.lua",

	shiftDir.."intermission1_5.lua",
	shiftDir.."shift2_1.lua",
	shiftDir.."shift2_2.lua",
	shiftDir.."shift2_3.lua",
	shiftDir.."shift2_4.lua",
	shiftDir.."shift2_5.lua",

	shiftDir.."shift3_1.lua",
	shiftDir.."shift3_2.lua",
	shiftDir.."shift3_3.lua",
	shiftDir.."shift3_4.lua",
	shiftDir.."shift3_5.lua",

	shiftDir.."intermission3_5.lua",
	shiftDir.."shift4_1.lua",
	shiftDir.."shift4_2.lua",
	shiftDir.."shift4_3.lua",
	shiftDir.."shift4_4.lua",
	shiftDir.."shift4_5.lua",
	shiftDir.."intermission4_51.lua",
	shiftDir.."intermission4_52.lua",

	shiftDir.."shift5_1.lua",
	shiftDir.."shift5_2.lua",
	shiftDir.."shift5_3.lua",
	shiftDir.."shift5_4.lua",
	shiftDir.."intermission5_4.lua",
	shiftDir.."shift5_5.lua",
	shiftDir.."outro.lua",
	shiftDir.."outro2.lua",
	shiftDir.."outro3.lua",
}

-- Info:
-- Enter your PC's name here to specify where you go when you start the game.
-- If your PC name isn't here, you'll go trough the normal loading/selection/game path.

-- 1) Entering a number will make you go to the level at that index in the 'shifts' table (see above)
--    Example: PCLUC = 2, will make Luc enter "script/shifts/intro2.lua" on startup.

-- 2) Entering a table containing two numbers will make you go to a specific Room & Shift.
--    Example: PCLUC = {2, 5}, will make Luc enter Room 2 Shift 5 on startup.

-- 3) Entering a filename will simply load that level.
--   Example: PCLUC = "script/shifts/intro2.lua", will make Luc enter the 2nd intro on startup.
--    Example: PCLUC = "script/shifts/intro2.lua", will make Luc enter the 2nd intro on startup.

-- 4) Entering "load", "selection", "trophy" or "game" will open that specific scene.
--    Example: PCLUC = "selection", will make Luc enter the Selection Scene on startup.

startLevelsForPCs = {
	PCLUC = 1,			-- Luc
	--PC076 = {5,1},			-- Roel
	--PC037 = "selection",	-- Ruud
	--PC039 = "trophy",		-- Dirk
}
