Companion
Functions
Link copied to clipboard
open override fun <T : ZoneProt> buildCache(allocator: ByteBufAllocator, messages: List<T>): ByteBuf
Builds a cache of a given zone's list of zone prots. This is intended so the server only requests one cache per zone per game cycle, rather than re-building the same buffer N times, where N is the number of players observing the zone. With this in mind however, zone prots which are player-specific, such as OBJ_ADD cannot be grouped together and must be sent separately, as they also are in OldSchool RuneScape.