﻿using galaxy.core.habbolib.rooms;

namespace galaxy.core.communication.packets.outgoing.rooms.engine
{
    class UserChangeComposer : ServerPacket
    {
        public UserChangeComposer(RoomUser User, bool Self)
            : base(ServerPacketHeader.UserChangeMessageComposer)
        {
            base.WriteInteger((Self) ? -1 : User.virtualId);
           base.WriteString(User.getClient().GetHabbo().Look);
           base.WriteString(User.getClient().GetHabbo().Gender);
           base.WriteString(User.getClient().GetHabbo().Motto);
            base.WriteInteger(User.getClient().GetHabbo().getStats().AchievementPoints);
        }
    }
}