Remove outdated packet

This commit is contained in:
KingRainbow44 2023-05-29 03:08:37 -04:00
parent 3a9caf2cae
commit 4fd617cebd
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -3,35 +3,35 @@ package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.world.Position; import emu.grasscutter.game.world.Position;
import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes; import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.BeginCameraSceneLookNotifyOuterClass.BeginCameraSceneLookNotify;
import java.util.ArrayList;
import java.util.Collection;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.Collection;
public final class PacketBeginCameraSceneLookNotify extends BasePacket { public final class PacketBeginCameraSceneLookNotify extends BasePacket {
public PacketBeginCameraSceneLookNotify(CameraSceneLookNotify parameters) { public PacketBeginCameraSceneLookNotify(CameraSceneLookNotify parameters) {
super(PacketOpcodes.BeginCameraSceneLookNotify); super(PacketOpcodes.BeginCameraSceneLookNotify);
var packet = // var packet =
BeginCameraSceneLookNotify.newBuilder() // BeginCameraSceneLookNotify.newBuilder()
.setLookPos(parameters.lookPos.toProto()) // .setLookPos(parameters.lookPos.toProto())
.setFollowPos(parameters.followPos.toProto()) // .setFollowPos(parameters.followPos.toProto())
.setDuration(parameters.duration) // .setDuration(parameters.duration)
.setIsAllowInput(parameters.isAllowInput) // .setIsAllowInput(parameters.isAllowInput)
.setIsSetFollowPos(parameters.setFollowPos) // .setIsSetFollowPos(parameters.setFollowPos)
.setIsSetScreenXy(parameters.isScreenXY) // .setIsSetScreenXy(parameters.isScreenXY)
.setIsRecoverKeepCurrent(parameters.recoverKeepCurrent) // .setIsRecoverKeepCurrent(parameters.recoverKeepCurrent)
.setIsChangePlayMode(parameters.isChangePlayMode) // .setIsChangePlayMode(parameters.isChangePlayMode)
.setScreenY(parameters.screenY) // .setScreenY(parameters.screenY)
.setScreenX(parameters.screenX) // .setScreenX(parameters.screenX)
.setIsForce(parameters.isForce) // .setIsForce(parameters.isForce)
.setIsForce(parameters.isForceWalk) // .setIsForce(parameters.isForceWalk)
.setEntityId(parameters.entityId) // .setEntityId(parameters.entityId)
.addAllOtherParams(parameters.otherParams); // .addAllOtherParams(parameters.otherParams);
//
this.setData(packet); // this.setData(packet);
} }
// TODO check default values // TODO check default values