StorySequences

struct StorySequences

Struct is responsible for retrieving and parsing StorySequences.json into a Swift datatype. It describes all instances of StorySequence.

Author

Cadence Holmes 2018
  • Undocumented

    Declaration

    Swift

    var bundle: Bundle
  • Parse StorySequences.json and return a formatted StorySequence .

    Throws

    print(error.localizedDescription) if unable to retrieve data.

    See more

    Declaration

    Swift

    func getStorySequence(scenario: Int, outro: Int? = nil) -> StorySequence?

    Parameters

    scenario

    The scenarioID of the target scenario.

    outro

    If true, searches for the outro event type. Otherwise searches for the intro event type.

    Return Value

    A formatted StorySequence .