import { OutPacketBase } from 'packets/out/packet' ; /**
 * sends only an user's changed data
 */ export class UserInfoDynamicUpdate { param newFlags param outPacket public static buildCampaign ( newFlags , outPacket ) { outPacket . writeUInt32 ( 0x1000 ) ; outPacket . writeUInt8 ( 0 ) ; outPacket . writeUInt16 ( newFlags ) ; outPacket . writeUInt32 ( 0 ) ; } param newAvatar param outPacket public static buildAvatar ( newAvatar , outPacket ) { outPacket . writeUInt32 ( 0x800000 ) ; outPacket . writeUInt16 ( newAvatar ) ; } param newAvatar param outPacket public static buildSignature ( newSignature , outPacket ) { outPacket . writeUInt32 ( 0x40000 ) ; outPacket . writeString ( newSignature ) ; } param newAvatar param outPacket public static buildTitle ( newTitle , outPacket ) { outPacket . writeUInt32 ( 0x8000 ) ; outPacket . writeUInt16 ( newTitle ) ; } param played_matches param wins param kills param headshots param deaths param assists param accuracy param seconds_played param outPacket public static buildGameStats ( played_matches , wins , kills , headshots , deaths , assists , accuracy , seconds_played , outPacket ) { outPacket . writeUInt32 ( 0x40 ) ; outPacket . writeUInt32 ( played_matches ) ; outPacket . writeUInt32 ( wins ) ; outPacket . writeUInt32 ( kills ) ; outPacket . writeUInt32 ( headshots ) ; outPacket . writeUInt32 ( deaths ) ; outPacket . writeUInt32 ( assists ) ; outPacket . writeUInt16 ( accuracy ) ; outPacket . writeUInt32 ( seconds_played ) ; } }