local Cinematic =
{
	Name = "Cinematic",
	Type = "System",

	Functions =
	{
		{
			Name = "CinematicFinished",
			Type = "Function",

			Arguments =
			{
				{ Name = "movieType", Type = "CinematicType", Nilable = false },
				{ Name = "userCanceled", Type = "bool", Nilable = false, Default = false },
				{ Name = "didError", Type = "bool", Nilable = false, Default = false },
			},
		},
		{
			Name = "CinematicStarted",
			Type = "Function",

			Arguments =
			{
				{ Name = "movieType", Type = "CinematicType", Nilable = false },
				{ Name = "movieID", Type = "number", Nilable = false },
				{ Name = "canCancel", Type = "bool", Nilable = false, Default = true },
			},
		},
		{
			Name = "InCinematic",
			Type = "Function",

			Returns =
			{
				{ Name = "inCinematic", Type = "bool", Nilable = false },
			},
		},
		{
			Name = "MouseOverrideCinematicDisable",
			Type = "Function",

			Arguments =
			{
				{ Name = "doOverride", Type = "bool", Nilable = false, Default = false },
			},
		},
		{
			Name = "OpeningCinematic",
			Type = "Function",
		},
		{
			Name = "StopCinematic",
			Type = "Function",
		},
	},

	Events =
	{
		{
			Name = "CinematicStart",
			Type = "Event",
			LiteralName = "CINEMATIC_START",
			Payload =
			{
				{ Name = "canBeCancelled", Type = "bool", Nilable = false },
				{ Name = "forcedAspectRatio", Type = "CameraModeAspectRatio", Nilable = false },
			},
		},
		{
			Name = "CinematicStop",
			Type = "Event",
			LiteralName = "CINEMATIC_STOP",
		},
		{
			Name = "HideSubtitle",
			Type = "Event",
			LiteralName = "HIDE_SUBTITLE",
		},
		{
			Name = "PlayMovie",
			Type = "Event",
			LiteralName = "PLAY_MOVIE",
			Payload =
			{
				{ Name = "movieID", Type = "number", Nilable = false },
			},
		},
		{
			Name = "ShowSubtitle",
			Type = "Event",
			LiteralName = "SHOW_SUBTITLE",
			Payload =
			{
				{ Name = "subtitle", Type = "cstring", Nilable = false },
				{ Name = "sender", Type = "cstring", Nilable = true },
			},
		},
		{
			Name = "StopMovie",
			Type = "Event",
			LiteralName = "STOP_MOVIE",
		},
	},

	Tables =
	{
	},
};

APIDocumentation:AddDocumentationTable(Cinematic);