INNER CODE UNIT · JavaScript

notifyAllOnRangeOfArea

Dannark/BWO · bwo-server/core/game.js:80

    function notifyAllOnRangeOfArea(command, showlog = false) {
        showlog? console.log(`> `,command) : null;
        var type = command.type
        var allPlayers = getAllPlayersAroundPoint(command.point)
        delete command.point
        
        for (const skt of socketList) {
            if (allPlayers[skt.id] != undefined) {
                delete command.type
                skt.emit(type, command)

                state.statistics.msgSent ++
            }

        }
    }

    function getAllEnemysAround(playerId){

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…