diff --git a/GoldWars/GoldWars/MessageProtocol.swift b/GoldWars/GoldWars/MessageProtocol.swift index f47f0cd..23ef038 100644 --- a/GoldWars/GoldWars/MessageProtocol.swift +++ b/GoldWars/GoldWars/MessageProtocol.swift @@ -33,10 +33,12 @@ struct PlayerMove : Message{ let unitCount: Int } -class MultiplayerNetwork: NSObject{ +class MultiplayerNetwork{ static let sharedInstance = MultiplayerNetwork() + + func sendData(data: Data) { let mmHelper = MatchmakingHelper.sharedInstance if let multiplayerMatch = mmHelper.mpMatch {