--!strict

local Presets = require(script.Parent.Presets)
local Context = {}
function Context.new(presetIndex: string?): Presets.Preset
	local DefaultPresetInfo = Presets['Default']
	local self: Presets.Preset = presetIndex and Presets[presetIndex] or DefaultPresetInfo
	
	for propertyKey, propertyValue in next, DefaultPresetInfo do
		if not self[propertyKey] then
			self[propertyKey] = propertyValue
		end
	end
	
	return self
end
return Context
