TEST: Datamodel

This commit is contained in:
Niko Jochim 2020-05-13 13:34:34 +02:00
parent d99878eb47
commit fb01faa1e5

View File

@ -33,10 +33,12 @@ struct PlayerMove : Message{
let unitCount: Int let unitCount: Int
} }
class MultiplayerNetwork: NSObject{ class MultiplayerNetwork{
static let sharedInstance = MultiplayerNetwork() static let sharedInstance = MultiplayerNetwork()
func sendData(data: Data) { func sendData(data: Data) {
let mmHelper = MatchmakingHelper.sharedInstance let mmHelper = MatchmakingHelper.sharedInstance
if let multiplayerMatch = mmHelper.mpMatch { if let multiplayerMatch = mmHelper.mpMatch {