Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.76 KB | None | 0 0
  1. enum HorizontalPlanesType: String, CaseIterable {
  2.     case up = "up"
  3.     case down = "down"
  4. }
  5.  
  6. enum CubeMapSide: Int, CaseIterable {
  7.    
  8.     case left = 0
  9.     case front = 1
  10.     case right = 2
  11.     case back = 3
  12.     case top = 4
  13.     case bottom = 5
  14.    
  15.     var associatedSide: String {
  16.         switch self {
  17.         case .left:
  18.             return "left"
  19.         case .front:
  20.             return "front"
  21.         case .right:
  22.             return "right"
  23.         case .back:
  24.             return "back"
  25.         case .top:
  26.             return "top"
  27.         case .bottom:
  28.             return "bottom"
  29.         }
  30.     }
  31.    
  32.     static let horizontalSides: [CubeMapSide] = [CubeMapSide.left, CubeMapSide.front, CubeMapSide.right, CubeMapSide.back]
  33.    
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement