ClearEntities

data object ClearEntities : OutgoingGameMessage

Clear entities packet is used to clear any NPCs and world entities from the currently active world. This furthermore sets the active world back to root. It is important to note that the net.rsprot.protocol.game.outgoing.info.npcinfo.NpcInfo.clearEntities, net.rsprot.protocol.game.outgoing.info.worldentityinfo.WorldEntityInfo.clearEntities and net.rsprot.protocol.game.outgoing.info.playerinfo.PlayerInfoProtocol.update functions must be called in conjunction with this packet. Additionally, this packet must be called before the respective net.rsprot.protocol.game.outgoing.info.npcinfo.NpcInfoProtocol.update, net.rsprot.protocol.game.outgoing.info.worldentityinfo.WorldEntityProtocol.update and net.rsprot.protocol.game.outgoing.info.playerinfo.PlayerInfoProtocol.update functions.

Properties

Link copied to clipboard
open override val category: ServerProtCategory

Functions

Link copied to clipboard
open fun estimateSize(): Int