Remove unnecessary field form MapFactory

This commit is contained in:
Marcel Schwarz 2020-05-02 21:55:08 +02:00
parent 7fc4a5145f
commit 5eed82803b

View File

@ -11,17 +11,11 @@ import SpriteKit
class MapFactory { class MapFactory {
var entityManager: EntityManager!
var scene: SKScene!
var twoPlayerMaps: [MapProtocol]! var twoPlayerMaps: [MapProtocol]!
var threePlayerMaps: [MapProtocol]! var threePlayerMaps: [MapProtocol]!
var fourPlayerMaps: [MapProtocol]! var fourPlayerMaps: [MapProtocol]!
init(scene: SKScene, entityManager: EntityManager) { init(scene: SKScene, entityManager: EntityManager) {
self.entityManager = entityManager
self.scene = scene
self.twoPlayerMaps = [ self.twoPlayerMaps = [
TwoPlayerDefaultTestMap(scene: scene, entityManager: entityManager) TwoPlayerDefaultTestMap(scene: scene, entityManager: entityManager)
] ]