move team-enum out of class
This commit is contained in:
parent
e9bd05c852
commit
e8654fbf54
@ -9,16 +9,6 @@
|
||||
import SpriteKit
|
||||
import GameplayKit
|
||||
|
||||
enum Team: Int {
|
||||
case team1 = 1
|
||||
case team2 = 2
|
||||
case team3 = 3
|
||||
case team4 = 4
|
||||
|
||||
static let allValues = [team1, team2,team3,team4]
|
||||
|
||||
}
|
||||
|
||||
class TeamComponent: GKComponent {
|
||||
let team: Team
|
||||
let fire:SKEmitterNode
|
||||
|
16
GoldWars/GoldWars/Enums/Team.swift
Normal file
16
GoldWars/GoldWars/Enums/Team.swift
Normal file
@ -0,0 +1,16 @@
|
||||
//
|
||||
// Team.swift
|
||||
// GoldWars
|
||||
//
|
||||
// Created by Jakob Haag on 02.05.20.
|
||||
// Copyright © 2020 SP2. All rights reserved.
|
||||
//
|
||||
|
||||
enum Team: Int {
|
||||
case team1 = 1
|
||||
case team2 = 2
|
||||
case team3 = 3
|
||||
case team4 = 4
|
||||
|
||||
static let allValues = [team1, team2,team3,team4]
|
||||
}
|
Loading…
Reference in New Issue
Block a user