package emu.grasscutter.server.packet.send;

import emu.grasscutter.net.packet.*;
import io.grasscutter.net.proto.tower.TowerCurLevelRecordChangeNotify;
import io.grasscutter.net.proto.tower.TowerCurLevelRecord;

public class PacketTowerCurLevelRecordChangeNotify extends BasePacket {

    public PacketTowerCurLevelRecordChangeNotify(int curFloorId, int curLevelIndex) {
        super(PacketOpcodes.TowerCurLevelRecordChangeNotify);

        TowerCurLevelRecordChangeNotify proto =
                TowerCurLevelRecordChangeNotify.newBuilder()
                        .setCurLevelRecord(
                                TowerCurLevelRecord.newBuilder()
                                        .setCurFloorId(curFloorId)
                                        .setCurLevelIndex(curLevelIndex)
                                        // TODO team info
                                        .build())
                        .build();

        this.setData(proto);
    }
}
