RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendCameraTurn.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.net.packet.OutgoingPacket;
5
29
30public class SendCameraTurn extends OutgoingPacket {
31 private final int x;
32 private final int y;
33 private final int z;
34 private final int constantSpeed;
35 private final int variableSpeed;
36
37 public SendCameraTurn(int x, int y, int z, int constantSpeed, int variableSpeed) {
38 super(177, 7);
39 this.x = x ;
40 this.y = y;
41 this.z = z;
42 this.constantSpeed = constantSpeed;
43 this.variableSpeed = variableSpeed;
44 }
45 @Override
46 protected boolean encode(Player player) {
47 builder.writeByte(x);
48 builder.writeByte(y);
49 builder.writeShort(z);
50 builder.writeByte(constantSpeed);
51 builder.writeByte(variableSpeed);
52 return true;
53
54 }
55}