Created
November 20, 2021 07:05
-
-
Save vaibhavgoyal09/adff947b407c88b0706e0c2aa83dded1 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 SocketConnection { | |
val players = ConcurrentHashMap<String, Player>() | |
fun playerJoined(player: Player) { | |
players[player.clientId] = player | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment