StorySequences
struct StorySequences
Struct is responsible for retrieving and parsing StorySequences.json into a Swift datatype. It describes all instances of StorySequence.
-
Undocumented
Declaration
Swift
var bundle: Bundle
-
Parse
StorySequences.json
and return a formattedStorySequence
.Throws
print(error.localizedDescription)
if unable to retrieve data.Declaration
Swift
func getStorySequence(scenario: Int, outro: Int? = nil) -> StorySequence?
Parameters
scenario
The
scenarioID
of the target scenario.outro
If
true
, searches for theoutro
event type. Otherwise searches for theintro
event type.Return Value
A formatted
StorySequence
.