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.net.packet.BasePacket;
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.NoArgsConstructor;
import java.util.ArrayList;
import java.util.Collection;
public final class PacketBeginCameraSceneLookNotify extends BasePacket {
public PacketBeginCameraSceneLookNotify(CameraSceneLookNotify parameters) {
super(PacketOpcodes.BeginCameraSceneLookNotify);
var packet =
BeginCameraSceneLookNotify.newBuilder()
.setLookPos(parameters.lookPos.toProto())
.setFollowPos(parameters.followPos.toProto())
.setDuration(parameters.duration)
.setIsAllowInput(parameters.isAllowInput)
.setIsSetFollowPos(parameters.setFollowPos)
.setIsSetScreenXy(parameters.isScreenXY)
.setIsRecoverKeepCurrent(parameters.recoverKeepCurrent)
.setIsChangePlayMode(parameters.isChangePlayMode)
.setScreenY(parameters.screenY)
.setScreenX(parameters.screenX)
.setIsForce(parameters.isForce)
.setIsForce(parameters.isForceWalk)
.setEntityId(parameters.entityId)
.addAllOtherParams(parameters.otherParams);
this.setData(packet);
// var packet =
// BeginCameraSceneLookNotify.newBuilder()
// .setLookPos(parameters.lookPos.toProto())
// .setFollowPos(parameters.followPos.toProto())
// .setDuration(parameters.duration)
// .setIsAllowInput(parameters.isAllowInput)
// .setIsSetFollowPos(parameters.setFollowPos)
// .setIsSetScreenXy(parameters.isScreenXY)
// .setIsRecoverKeepCurrent(parameters.recoverKeepCurrent)
// .setIsChangePlayMode(parameters.isChangePlayMode)
// .setScreenY(parameters.screenY)
// .setScreenX(parameters.screenX)
// .setIsForce(parameters.isForce)
// .setIsForce(parameters.isForceWalk)
// .setEntityId(parameters.entityId)
// .addAllOtherParams(parameters.otherParams);
//
// this.setData(packet);
}
// TODO check default values