SwitchRequisite

struct SwitchRequisite

A data structure that represents a configuration for a switch requisite.

This structure is used to describe what inputs will trigger an output, and how many inputs are needed to activate the switch.

  • The location in the map that corresponds to the output.

    Declaration

    Swift

    var outputLocation: CGPoint
  • A list of locations that correspond to the inputs.

    Declaration

    Swift

    var requiredInputs: [CGPoint]
  • The requisite for the output to be activated.

    Declaration

    Swift

    var requisite: GameSignalMethod?
  • Get the requisite for a given output based on a configuration string.

    Declaration

    Swift

    static func getRequisite(from string: String) -> GameSignalMethod?

    Parameters

    string

    The string to read and convert into a requisite.

    Return Value

    The input requisite, or a null type if no requisites match.