Skip to content

Commit acfb2fd

Browse files
committed
minor changes
Minor changes
1 parent eb57638 commit acfb2fd

File tree

11 files changed

+22
-0
lines changed

11 files changed

+22
-0
lines changed

GoInfoGame/GoInfoGame/quests/BusStopLit/BusStopLitForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Foundation
99
import SwiftUI
1010

1111
struct BusStopLitForm: View, QuestForm {
12+
var action: ((Bool) -> Void)?
13+
1214
func applyAnswer(answer: Bool) {
1315
}
1416
typealias AnswerClass = Bool

GoInfoGame/GoInfoGame/quests/CrossingMarking/CrossMarkingForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Foundation
99
import SwiftUI
1010

1111
struct CrossMarkingForm : View,QuestForm{
12+
var action: ((CrossingAnswer) -> Void)?
13+
1214
@State private var selectedAnswer: CrossingAnswer?
1315
@State private var showAlert = false
1416
func applyAnswer(answer: CrossingAnswer) {

GoInfoGame/GoInfoGame/quests/Handrail/HandRailForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import SwiftUI
99

1010
struct HandRailForm: View, QuestForm {
11+
var action: ((Bool) -> Void)?
12+
1113

1214
func applyAnswer(answer: Bool) {
1315

GoInfoGame/GoInfoGame/quests/QuestProtocols.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ protocol QuestForm {
5959
associatedtype AnswerClass
6060

6161
func applyAnswer(answer:AnswerClass)
62+
63+
var action: ((_ answer:AnswerClass)->Void)? {get set}
6264
}
6365

6466
//struct DisplayUnitWithCoordinate: Identifiable {

GoInfoGame/GoInfoGame/quests/SidewalkWidth/SideWalkWidth.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class SideWalkWidth : Quest {
2626
var icon: UIImage = #imageLiteral(resourceName: "sidewalk-width-img")
2727
var wikiLink: String = ""
2828
var changesetComment: String = ""
29+
2930
var form: AnyView = AnyView(SideWalkWidthForm())
31+
3032
var relationData: Any? = nil
3133
func onAnswer(answer: WidthAnswer) {
3234
}

GoInfoGame/GoInfoGame/quests/SidewalkWidth/SideWalkWidthForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import SwiftUI
99

1010
struct SideWalkWidthForm: View, QuestForm {
11+
var action: ((WidthAnswer) -> Void)?
12+
1113

1214
func applyAnswer(answer: WidthAnswer) {
1315

GoInfoGame/GoInfoGame/quests/StairNumber/StairNumberForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Foundation
99
import SwiftUI
1010

1111
struct StairNumberForm: View, QuestForm {
12+
var action: ((Int) -> Void)?
13+
1214
func applyAnswer(answer: Int) {
1315
}
1416
typealias AnswerClass = Int

GoInfoGame/GoInfoGame/quests/StepsIncline/StepsInclineForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import SwiftUI
99

1010
struct StepsInclineForm: View, QuestForm {
11+
var action: ((StepsInclineDirection) -> Void)?
12+
1113
func applyAnswer(answer: StepsInclineDirection) {
1214
// TODO
1315
}

GoInfoGame/GoInfoGame/quests/StepsRamp/StepsRampForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Foundation
99
import SwiftUI
1010

1111
struct StepsRampForm: View, QuestForm {
12+
var action: ((StepsRampAnswer) -> Void)?
13+
1214
func applyAnswer(answer: StepsRampAnswer) {
1315
}
1416
typealias AnswerClass = StepsRampAnswer

GoInfoGame/GoInfoGame/quests/TactilePavingSteps/TactilePavingStepsForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Foundation
99
import SwiftUI
1010

1111
struct TactilePavingStepsForm: View, QuestForm {
12+
var action: ((TactilePavingStepsAnswer) -> Void)?
13+
1214
func applyAnswer(answer: TactilePavingStepsAnswer) {
1315
}
1416
typealias AnswerClass = TactilePavingStepsAnswer

0 commit comments

Comments
 (0)