From fb01faa1e5b6ed5867578848623249d56bbf50b7 Mon Sep 17 00:00:00 2001 From: Niko Jochim <82joni1bif@hft-stuttgart.de> Date: Wed, 13 May 2020 13:34:34 +0200 Subject: [PATCH] TEST: Datamodel --- GoldWars/GoldWars/MessageProtocol.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {