MOLineDefs.swift 691 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // MOLineDefs.swift
  3. // MiMoLive
  4. //
  5. // Created by OneeChan on 2025/9/28.
  6. //
  7. import Foundation
  8. @objc
  9. enum LineType: Int, Decodable {
  10. case linePk = 1
  11. case line = 2
  12. }
  13. enum LinePkHistoryType: Int, Decodable {
  14. case all = 0
  15. case random = 1
  16. var title: String {
  17. switch self {
  18. case .all:
  19. "All"
  20. case .random:
  21. "Random"
  22. }
  23. }
  24. }
  25. enum LinePkType: Int, Decodable {
  26. case single = 1
  27. }
  28. @objc
  29. enum LinePKState: Int {
  30. case none = 0
  31. case pking = 1
  32. case punishing = 2
  33. case draw = 3
  34. }
  35. @objc
  36. enum LinePkResult: Int, Decodable {
  37. case none = 0
  38. case draw = 1
  39. case lose = 2
  40. case win = 3
  41. }