Skip to content

Commit

Permalink
refactor: rename old outdated prots
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Kris committed Jan 16, 2025
1 parent 82bd893 commit 8c16fc7
Show file tree
Hide file tree
Showing 35 changed files with 49 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import net.rsprox.protocol.v223.game.incoming.decoder.prot.GameClientProt

@Consistent
internal class UpdatePlayerModelV1Decoder : ProxyMessageDecoder<UpdatePlayerModelV1> {
override val prot: ClientProt = GameClientProt.UPDATE_PLAYER_MODEL
override val prot: ClientProt = GameClientProt.UPDATE_PLAYER_MODEL_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public enum class GameClientProt(
SEND_SNAPSHOT(GameClientProtId.SEND_SNAPSHOT, Prot.VAR_BYTE),
HISCORE_REQUEST(GameClientProtId.HISCORE_REQUEST, Prot.VAR_BYTE),
IF_CRMVIEW_CLICK(GameClientProtId.IF_CRMVIEW_CLICK, 22),
UPDATE_PLAYER_MODEL(GameClientProtId.UPDATE_PLAYER_MODEL, 13),
UPDATE_PLAYER_MODEL_V1(GameClientProtId.UPDATE_PLAYER_MODEL_V1, 13),

// Misc. client packets
CONNECTION_TELEMETRY(GameClientProtId.CONNECTION_TELEMETRY, Prot.VAR_BYTE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal object GameClientProtId {
const val EVENT_MOUSE_CLICK = 18
const val OPLOC3 = 19
const val IGNORELIST_ADD = 20
const val UPDATE_PLAYER_MODEL = 21
const val UPDATE_PLAYER_MODEL_V1 = 21
const val WINDOW_STATUS = 22
const val OPPLAYER8 = 23
const val MESSAGE_PUBLIC = 24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal class UpdateZonePartialEnclosedDecoder : ProxyMessageDecoder<UpdateZone
LOC_MERGE(LocMergeDecoder()),
OBJ_ENABLED_OPS(ObjEnabledOpsDecoder()),
LOC_ANIM(LocAnimDecoder()),
LOC_ADD_CHANGE(LocAddChangeDecoder()),
LOC_ADD_CHANGE_V1(LocAddChangeDecoder()),
MAP_ANIM(MapAnimDecoder()),
OBJ_COUNT(ObjCountDecoder()),
MAP_PROJANIM(MapProjAnimDecoder()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import net.rsprox.protocol.session.Session
import net.rsprox.protocol.v223.game.outgoing.decoder.prot.GameServerProt

internal class LocAddChangeDecoder : ProxyMessageDecoder<LocAddChangeV1> {
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public enum class GameServerProt(
UPDATE_ZONE_PARTIAL_ENCLOSED(GameServerProtId.UPDATE_ZONE_PARTIAL_ENCLOSED, Prot.VAR_SHORT),

// Zone payload packets
LOC_ADD_CHANGE(GameServerProtId.LOC_ADD_CHANGE, 5),
LOC_ADD_CHANGE_V1(GameServerProtId.LOC_ADD_CHANGE_V1, 5),
LOC_DEL(GameServerProtId.LOC_DEL, 2),
LOC_ANIM(GameServerProtId.LOC_ANIM, 4),
LOC_MERGE(GameServerProtId.LOC_MERGE, 14),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ internal object GameServerProtId {
const val UPDATE_INV_PARTIAL = 101
const val IF_SETANIM = 102
const val OBJ_DEL = 103
const val LOC_ADD_CHANGE = 104
const val LOC_ADD_CHANGE_V1 = 104
const val IF_SETOBJECT = 105
const val SERVER_TICK_END = 106
const val UPDATE_RUNENERGY = 107
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import net.rsprox.protocol.v224.game.incoming.decoder.prot.GameClientProt

@Consistent
internal class UpdatePlayerModelV1Decoder : ProxyMessageDecoder<UpdatePlayerModelV1> {
override val prot: ClientProt = GameClientProt.UPDATE_PLAYER_MODEL_OLD
override val prot: ClientProt = GameClientProt.UPDATE_PLAYER_MODEL_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public enum class GameClientProt(
SEND_SNAPSHOT(GameClientProtId.SEND_SNAPSHOT, Prot.VAR_BYTE),
HISCORE_REQUEST(GameClientProtId.HISCORE_REQUEST, Prot.VAR_BYTE),
IF_CRMVIEW_CLICK(GameClientProtId.IF_CRMVIEW_CLICK, 22),
UPDATE_PLAYER_MODEL(GameClientProtId.UPDATE_PLAYER_MODEL, 26),
UPDATE_PLAYER_MODEL_OLD(GameClientProtId.UPDATE_PLAYER_MODEL_OLD, 13),
UPDATE_PLAYER_MODEL_V2(GameClientProtId.UPDATE_PLAYER_MODEL_V2, 26),
UPDATE_PLAYER_MODEL_V1(GameClientProtId.UPDATE_PLAYER_MODEL_V1, 13),

// Misc. client packets
CONNECTION_TELEMETRY(GameClientProtId.CONNECTION_TELEMETRY, Prot.VAR_BYTE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ internal object GameClientProtId {
const val EVENT_CAMERA_POSITION = 87
const val IF_SUBOP = 88
const val IF_BUTTON6 = 89
const val UPDATE_PLAYER_MODEL_OLD = 90
const val UPDATE_PLAYER_MODEL_V1 = 90
const val OPNPC6 = 91
const val OPOBJ6 = 92
const val MESSAGE_PRIVATE = 93
const val OPPLAYERT = 94
const val OPOBJ2 = 95
const val CLANCHANNEL_FULL_REQUEST = 96
const val EVENT_KEYBOARD = 97
const val UPDATE_PLAYER_MODEL = 98
const val UPDATE_PLAYER_MODEL_V2 = 98
const val OPPLAYER1 = 99
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ internal class UpdateZonePartialEnclosedDecoder : ProxyMessageDecoder<UpdateZone
private enum class IndexedZoneProtDecoder(
val decoder: ProxyMessageDecoder<*>,
) {
LOC_ADD_CHANGE(LocAddChangeDecoder()),
LOC_ADD_CHANGE_V1(LocAddChangeDecoder()),
OBJ_COUNT(ObjCountDecoder()),
OBJ_ENABLED_OPS(ObjEnabledOpsDecoder()),
MAP_ANIM(MapAnimDecoder()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import net.rsprox.protocol.session.Session
import net.rsprox.protocol.v224.game.outgoing.decoder.prot.GameServerProt

internal class LocAddChangeDecoder : ProxyMessageDecoder<LocAddChangeV1> {
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public enum class GameServerProt(
UPDATE_ZONE_PARTIAL_ENCLOSED(GameServerProtId.UPDATE_ZONE_PARTIAL_ENCLOSED, Prot.VAR_SHORT),

// Zone payload packets
LOC_ADD_CHANGE(GameServerProtId.LOC_ADD_CHANGE, 5),
LOC_ADD_CHANGE_V1(GameServerProtId.LOC_ADD_CHANGE_V1, 5),
LOC_DEL(GameServerProtId.LOC_DEL, 2),
LOC_ANIM(GameServerProtId.LOC_ANIM, 4),
LOC_MERGE(GameServerProtId.LOC_MERGE, 14),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.rsprox.protocol.v224.game.outgoing.decoder.prot

internal object GameServerProtId {
const val LOC_ADD_CHANGE = 0
const val LOC_ADD_CHANGE_V1 = 0
const val REBUILD_REGION = 1
const val IF_SETHIDE = 2
const val CAM_MODE = 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import net.rsprox.protocol.v225.game.incoming.decoder.prot.GameClientProt

@Consistent
internal class UpdatePlayerModelV1Decoder : ProxyMessageDecoder<UpdatePlayerModelV1> {
override val prot: ClientProt = GameClientProt.UPDATE_PLAYER_MODEL_OLD
override val prot: ClientProt = GameClientProt.UPDATE_PLAYER_MODEL_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public enum class GameClientProt(
SEND_SNAPSHOT(GameClientProtId.SEND_SNAPSHOT, Prot.VAR_BYTE),
HISCORE_REQUEST(GameClientProtId.HISCORE_REQUEST, Prot.VAR_BYTE),
IF_CRMVIEW_CLICK(GameClientProtId.IF_CRMVIEW_CLICK, 22),
UPDATE_PLAYER_MODEL(GameClientProtId.UPDATE_PLAYER_MODEL, 26),
UPDATE_PLAYER_MODEL_OLD(GameClientProtId.UPDATE_PLAYER_MODEL_OLD, 13),
UPDATE_PLAYER_MODEL_V2(GameClientProtId.UPDATE_PLAYER_MODEL_V2, 26),
UPDATE_PLAYER_MODEL_V1(GameClientProtId.UPDATE_PLAYER_MODEL_V1, 13),

// Misc. client packets
CONNECTION_TELEMETRY(GameClientProtId.CONNECTION_TELEMETRY, Prot.VAR_BYTE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal object GameClientProtId {
const val AFFINEDCLANSETTINGS_SETMUTED_FROMCHANNEL = 31
const val TELEPORT = 32
const val OPNPCT = 33
const val UPDATE_PLAYER_MODEL_OLD = 34
const val UPDATE_PLAYER_MODEL_V1 = 34
const val RESUME_P_NAMEDIALOG = 35
const val IF_SUBOP = 36
const val IF_BUTTONT = 37
Expand Down Expand Up @@ -88,7 +88,7 @@ internal object GameClientProtId {
const val MAP_BUILD_COMPLETE = 84
const val OPOBJ4 = 85
const val MEMBERSHIP_PROMOTION_ELIGIBILITY = 86
const val UPDATE_PLAYER_MODEL = 87
const val UPDATE_PLAYER_MODEL_V2 = 87
const val OPPLAYER4 = 88
const val OPOBJU = 89
const val OPOBJ1 = 90
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ internal class UpdateZonePartialEnclosedDecoder : ProxyMessageDecoder<UpdateZone
private enum class IndexedZoneProtDecoder(
val decoder: ProxyMessageDecoder<*>,
) {
LOC_ADD_CHANGE(LocAddChangeDecoder()),
LOC_ADD_CHANGE_V1(LocAddChangeDecoder()),
OBJ_ADD(ObjAddDecoder()),
LOC_DEL(LocDelDecoder()),
SOUND_AREA(SoundAreaDecoder()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import net.rsprox.protocol.session.Session
import net.rsprox.protocol.v225.game.outgoing.decoder.prot.GameServerProt

internal class LocAddChangeDecoder : ProxyMessageDecoder<LocAddChangeV1> {
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public enum class GameServerProt(
UPDATE_ZONE_PARTIAL_ENCLOSED(GameServerProtId.UPDATE_ZONE_PARTIAL_ENCLOSED, Prot.VAR_SHORT),

// Zone payload packets
LOC_ADD_CHANGE(GameServerProtId.LOC_ADD_CHANGE, 5),
LOC_ADD_CHANGE_V1(GameServerProtId.LOC_ADD_CHANGE_V1, 5),
LOC_DEL(GameServerProtId.LOC_DEL, 2),
LOC_ANIM(GameServerProtId.LOC_ANIM, 4),
LOC_MERGE(GameServerProtId.LOC_MERGE, 14),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ internal object GameServerProtId {
const val REFLECTION_CHECKER = 69
const val CAM_MOVETO_CYCLES = 70
const val UPDATE_INV_PARTIAL = 71
const val LOC_ADD_CHANGE = 72
const val LOC_ADD_CHANGE_V1 = 72
const val CAM_ROTATETO = 73
const val UPDATE_INV_STOPTRANSMIT = 74
const val WORLDENTITY_INFO_V1 = 75
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal class UpdateZonePartialEnclosedDecoder : ProxyMessageDecoder<UpdateZone
OBJ_COUNT(ObjCountDecoder()),
OBJ_ADD(ObjAddDecoder()),
LOC_MERGE(LocMergeDecoder()),
LOC_ADD_CHANGE(LocAddChangeDecoder()),
LOC_ADD_CHANGE_V1(LocAddChangeDecoder()),
MAP_ANIM(MapAnimDecoder()),
MAP_PROJANIM(MapProjAnimDecoder()),
LOC_ANIM(LocAnimDecoder()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import net.rsprox.protocol.session.Session
import net.rsprox.protocol.v226.game.outgoing.decoder.prot.GameServerProt

internal class LocAddChangeDecoder : ProxyMessageDecoder<LocAddChangeV1> {
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public enum class GameServerProt(
UPDATE_ZONE_PARTIAL_ENCLOSED(GameServerProtId.UPDATE_ZONE_PARTIAL_ENCLOSED, Prot.VAR_SHORT),

// Zone payload packets
LOC_ADD_CHANGE(GameServerProtId.LOC_ADD_CHANGE, 5),
LOC_ADD_CHANGE_V1(GameServerProtId.LOC_ADD_CHANGE_V1, 5),
LOC_DEL(GameServerProtId.LOC_DEL, 2),
LOC_ANIM(GameServerProtId.LOC_ANIM, 4),
LOC_MERGE(GameServerProtId.LOC_MERGE, 14),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal object GameServerProtId {
const val UPDATE_RUNENERGY = 32
const val CAM_TARGET_V2 = 33
const val IF_SETPLAYERMODEL_BODYTYPE = 34
const val LOC_ADD_CHANGE = 35
const val LOC_ADD_CHANGE_V1 = 35
const val UPDATE_IGNORELIST = 36
const val LOC_MERGE = 37
const val SET_HEATMAP_ENABLED = 38
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class UpdateZonePartialEnclosedDecoder : ProxyMessageDecoder<UpdateZone
val decoder: ProxyMessageDecoder<*>,
) {
MAP_PROJANIM(MapProjAnimDecoder()),
LOC_ADD_CHANGE(LocAddChangeDecoder()),
LOC_ADD_CHANGE_V1(LocAddChangeDecoder()),
OBJ_UNCUSTOMISE(ObjUncustomiseDecoder()),
OBJ_COUNT(ObjCountDecoder()),
OBJ_ENABLED_OPS(ObjEnabledOpsDecoder()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import net.rsprox.protocol.session.Session
import net.rsprox.protocol.v227.game.outgoing.decoder.prot.GameServerProt

internal class LocAddChangeDecoder : ProxyMessageDecoder<LocAddChangeV1> {
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE
override val prot: ClientProt = GameServerProt.LOC_ADD_CHANGE_V1

override fun decode(
buffer: JagByteBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public enum class GameServerProt(
UPDATE_ZONE_PARTIAL_ENCLOSED(GameServerProtId.UPDATE_ZONE_PARTIAL_ENCLOSED, Prot.VAR_SHORT),

// Zone payload packets
LOC_ADD_CHANGE(GameServerProtId.LOC_ADD_CHANGE, 5),
LOC_ADD_CHANGE_V1(GameServerProtId.LOC_ADD_CHANGE_V1, 5),
LOC_DEL(GameServerProtId.LOC_DEL, 2),
LOC_ANIM(GameServerProtId.LOC_ANIM, 4),
LOC_MERGE(GameServerProtId.LOC_MERGE, 14),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ internal object GameServerProtId {
const val HIDENPCOPS = 122
const val IF_SETPLAYERMODEL_OBJ = 123
const val UPDATE_INV_PARTIAL = 124
const val LOC_ADD_CHANGE = 125
const val LOC_ADD_CHANGE_V1 = 125
const val MIDI_SONG_V2 = 126
const val OBJ_ENABLED_OPS = 127
const val SET_INTERACTION_MODE = 128
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public class TranscriberPlugin(
GameServerProt.SET_NPC_UPDATE_ORIGIN -> pass(message, Transcriber::setNpcUpdateOrigin)
GameServerProt.CLEAR_ENTITIES -> pass(message, Transcriber::clearEntities)
GameServerProt.SET_ACTIVE_WORLD -> pass(message, Transcriber::setActiveWorld)
GameServerProt.WORLDENTITY_INFO_V4 -> pass(message, Transcriber::worldEntityInfoV4)
GameServerProt.WORLDENTITY_INFO_V3 -> pass(message, Transcriber::worldEntityInfoV3)
GameServerProt.WORLDENTITY_INFO_V2 -> pass(message, Transcriber::worldEntityInfoV2)
GameServerProt.WORLDENTITY_INFO_V1 -> pass(message, Transcriber::worldEntityInfoV1)
Expand Down Expand Up @@ -312,6 +313,7 @@ public class TranscriberPlugin(
GameClientProt.SOUND_JINGLEEND -> pass(message, Transcriber::soundJingleEnd)
GameClientProt.WINDOW_STATUS -> pass(message, Transcriber::windowStatus)
GameClientProt.SET_HEADING -> pass(message, Transcriber::setHeading)
GameClientProt.UNKNOWN_BYTE -> throw IllegalArgumentException("Unknown byte")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ import net.rsprox.protocol.game.outgoing.model.info.shared.extendedinfo.TintingE
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV1
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV2
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV3
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV4
import net.rsprox.protocol.game.outgoing.model.interfaces.IfClearInv
import net.rsprox.protocol.game.outgoing.model.interfaces.IfCloseSub
import net.rsprox.protocol.game.outgoing.model.interfaces.IfMoveSub
Expand Down Expand Up @@ -566,6 +567,9 @@ public class IndexerTranscriber(
override fun worldEntityInfoV3(message: WorldEntityInfoV3) {
}

override fun worldEntityInfoV4(message: WorldEntityInfoV4) {
}

override fun ifClearInv(message: IfClearInv) {
incrementInterfaceId(message.interfaceId)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import net.rsprox.protocol.game.outgoing.model.info.npcinfo.SetNpcUpdateOrigin
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV1
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV2
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV3
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV4
import net.rsprox.protocol.game.outgoing.model.interfaces.IfClearInv
import net.rsprox.protocol.game.outgoing.model.interfaces.IfCloseSub
import net.rsprox.protocol.game.outgoing.model.interfaces.IfMoveSub
Expand Down Expand Up @@ -177,6 +178,8 @@ public interface ServerPacketTranscriber {

public fun worldEntityInfoV3(message: WorldEntityInfoV3)

public fun worldEntityInfoV4(message: WorldEntityInfoV4)

public fun ifClearInv(message: IfClearInv)

public fun ifCloseSub(message: IfCloseSub)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,5 @@ public enum class GameClientProt : Prot {
SOUND_JINGLEEND,
WINDOW_STATUS,
SET_HEADING,
UNKNOWN_BYTE,
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public enum class GameServerProt : Prot {
// World entity packets
CLEAR_ENTITIES,
SET_ACTIVE_WORLD,
WORLDENTITY_INFO_V4,
WORLDENTITY_INFO_V3,
WORLDENTITY_INFO_V2,
WORLDENTITY_INFO_V1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ import net.rsprox.protocol.game.outgoing.model.friendchat.UpdateFriendChatChanne
import net.rsprox.protocol.game.outgoing.model.friendchat.UpdateFriendChatChannelSingleUser
import net.rsprox.protocol.game.outgoing.model.info.npcinfo.SetNpcUpdateOrigin
import net.rsprox.protocol.game.outgoing.model.info.playerinfo.util.PlayerInfoInitBlock
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfo
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV1
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV2
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityInfoV3
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.WorldEntityUpdateType
import net.rsprox.protocol.game.outgoing.model.info.worldentityinfo.*
import net.rsprox.protocol.game.outgoing.model.interfaces.IfClearInv
import net.rsprox.protocol.game.outgoing.model.interfaces.IfCloseSub
import net.rsprox.protocol.game.outgoing.model.interfaces.IfMoveSub
Expand Down Expand Up @@ -870,6 +866,10 @@ public class TextServerPacketTranscriber(
worldEntityInfo(message)
}

override fun worldEntityInfoV4(message: WorldEntityInfoV4) {
return worldEntityInfo(message)
}

private fun worldEntityInfo(message: WorldEntityInfo) {
if (!filters[PropertyFilter.WORLDENTITY_INFO]) return omit()
val group =
Expand Down

0 comments on commit 8c16fc7

Please sign in to comment.