import { OutPacketBase } from 'packets/out/packet' ; import { OutRoomPlayerNetInfo } from 'packets/out/room/playernetinfo' ; import { UserInfoFullUpdate } from 'packets/out/userinfo/fulluserupdate' ; import { ExtendedSocket } from 'extendedsocket' ; import { CSTeamNum } from 'gametypes/shareddefs' ; import { User } from 'user/user' ; class export class OutRoomPlayerJoin { public static build ( conn , teamNum , outPacket ) { const user = conn . session . user ; outPacket . writeUInt32 ( user . id ) ; OutRoomPlayerNetInfo . build ( conn , teamNum , outPacket ) ; UserInfoFullUpdate . build ( user , outPacket ) ; } }