diff --git a/GoldWars/GoldWars/Components/TeamComponent.swift b/GoldWars/GoldWars/Components/TeamComponent.swift index 0509a36..dc24f45 100644 --- a/GoldWars/GoldWars/Components/TeamComponent.swift +++ b/GoldWars/GoldWars/Components/TeamComponent.swift @@ -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 diff --git a/GoldWars/GoldWars/Enums/Team.swift b/GoldWars/GoldWars/Enums/Team.swift new file mode 100644 index 0000000..15115fa --- /dev/null +++ b/GoldWars/GoldWars/Enums/Team.swift @@ -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] +}