Closed iliran11 closed 5 years ago
*socket is a general name for player identifier. in case on human it is io.Socket, and in case on BOT it is just a string.
io.Socket
string
code example - allocatePlayerToRoom.ts
allocatePlayerToRoom.ts
const player = playerManager.getPlayer(socket); const room = RoomManager.getInstance().addPlayer(player);
*socket is a general name for player identifier. in case on human it is
io.Socket
, and in case on BOT it is just astring
.code example -
allocatePlayerToRoom.ts