import { Room } from "colyseus"; const room = Room.prototype; room.bUserJoin = function (data, options?: any) { this.broadcast("player_join", data, options); } room.sSelectHero = function (client, data) { this.send(client, 'select_hero_s2c', data); } room.bSelectHero = function(data) { this.broadcast("select_hero_s2c", data); }