move team-enum out of class

This commit is contained in:
Jakob Haag 2020-05-02 14:03:14 +02:00
parent e9bd05c852
commit e8654fbf54
2 changed files with 16 additions and 10 deletions

View File

@ -9,16 +9,6 @@
import SpriteKit import SpriteKit
import GameplayKit 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 { class TeamComponent: GKComponent {
let team: Team let team: Team
let fire:SKEmitterNode let fire:SKEmitterNode

View 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]
}