add nullable assigment to ownershipPlayer
This commit is contained in:
parent
ac1ad05bac
commit
b24d93c399
@ -15,7 +15,7 @@ class Base: GKEntity {
|
|||||||
var unitCount: Int
|
var unitCount: Int
|
||||||
var adjacencyList: Array<Base>
|
var adjacencyList: Array<Base>
|
||||||
var changeOwnership: Bool
|
var changeOwnership: Bool
|
||||||
var ownershipPlayer: GKPlayer
|
var ownershipPlayer: GKPlayer?
|
||||||
|
|
||||||
init(position: CGPoint, player: GKPlayer! = nil, team: Team! = nil) {
|
init(position: CGPoint, player: GKPlayer! = nil, team: Team! = nil) {
|
||||||
self.unitCount = 0
|
self.unitCount = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user