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.jsonand return a formattedStorySequence.See moreThrows
print(error.localizedDescription)if unable to retrieve data.Declaration
Swift
func getStorySequence(scenario: Int, outro: Int? = nil) -> StorySequence?Parameters
scenarioThe
scenarioIDof the target scenario.outroIf
true, searches for theoutroevent type. Otherwise searches for theintroevent type.Return Value
A formatted
StorySequence.
StorySequences Structure Reference