-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
536e0be
commit da5b210
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
TowerForge/TowerForge/Metrics/Missions/Implemented/MassEffectMission.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// MassEffectMission.swift | ||
// TowerForge | ||
// | ||
// Created by Rubesh on 20/4/24. | ||
// | ||
|
||
import Foundation | ||
|
||
final class MassEffectMission: Mission { | ||
var name: String = "Mass Effect" | ||
var description: String = "Attain 100 Kills & Deaths in 1 game" | ||
var currentParameters: [StatisticTypeWrapper: any Statistic] | ||
|
||
static var definedParameters: [StatisticTypeWrapper: Double] { | ||
[ | ||
TotalKillsStatistic.asType: 100.0, | ||
TotalDeathsStatistic.asType: 100.0 | ||
] | ||
} | ||
|
||
init(dependentStatistics: [Statistic]) { | ||
var stats: [StatisticTypeWrapper: any Statistic] = [:] | ||
dependentStatistics.forEach { stats[$0.statisticName] = $0 } | ||
self.currentParameters = stats | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters