Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum HorizontalPlanesType: String, CaseIterable {
- case up = "up"
- case down = "down"
- }
- enum CubeMapSide: Int, CaseIterable {
- case left = 0
- case front = 1
- case right = 2
- case back = 3
- case top = 4
- case bottom = 5
- var associatedSide: String {
- switch self {
- case .left:
- return "left"
- case .front:
- return "front"
- case .right:
- return "right"
- case .back:
- return "back"
- case .top:
- return "top"
- case .bottom:
- return "bottom"
- }
- }
- static let horizontalSides: [CubeMapSide] = [CubeMapSide.left, CubeMapSide.front, CubeMapSide.right, CubeMapSide.back]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement