Created
April 16, 2015 08:27
-
-
Save whoisdylan/9a904f43b59ab5829c92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Entity { | |
let dragger: Draggable? | |
let sender: Sendable<T>? | |
func sendData(toPeer peer: MCPeerID) { | |
let dataToSend = sender.data.toArchive | |
multipeerconnectivity.send(dataToSend, peer) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment