package core

can_transition :: proc(from, to: Workflow_Step) -> bool {
	switch from {
	case .Story_Input:
		return to == .Generating_Script
	case .Generating_Script:
		return to == .Script_Review || to == .Story_Input
	case .Script_Review:
		return to == .Character_Setup
	case .Character_Setup:
		return to == .Generating_Panels
	case .Generating_Panels:
		return to == .Layout
	case .Layout:
		return to == .Speech_Bubbles
	case .Speech_Bubbles:
		return to == .Complete
	case .Complete:
		return to == .Story_Input
	}

	return false
}
