Skip to content

Commit

Permalink
Moves AttackLabelStyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
mntone committed Jan 22, 2024
1 parent d63d178 commit c4b3f34
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/App/ViewModels/Utils/Attack+Extensions.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import MonsterAnalyzerCore
import SwiftUI

enum AttackLabelStyle {
// English: Fir (watchOS) / Fire (Other), Japanese: 火
case short
// English: Fire, Japanese: 火属性
case medium
// English: Fire Element, Japanese: 火属性
case long
}

extension Attack {
var color: Color {
switch self {
Expand Down Expand Up @@ -49,7 +40,16 @@ extension Attack {
}
}

func label(_ style: AttackLabelStyle) -> String {
enum LabelStyle {
// English: Fir (watchOS) / Fire (Other), Japanese: 火
case short
// English: Fire, Japanese: 火属性
case medium
// English: Fire Element, Japanese: 火属性
case long
}

func label(_ style: LabelStyle) -> String {
switch style {
case .short:
switch self {
Expand Down

0 comments on commit c4b3f34

Please sign in to comment.