SHARE
TWEET

Untitled

a guest Sep 16th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top