computeUpdateZonePartialEnclosedCache

fun <T : ZoneProt> computeUpdateZonePartialEnclosedCache(events: List<T>): EnumMap<OldSchoolClientType, ByteBuf>

Computes the buffer for the update zone partial enclosed packet payload for a given list of events, for every platform that is registered.

Return

a client type map that contains buffers for every client type that was initially registered. The server should write the same buffer for every observing client. For the enclosed packets, the reference count is not increased or decreased per observer, nor are the writer and reader indices modified. The server must, however, release these buffers at the end of the cycle, when they have been written to each client.

Parameters

events

the list of zone prot events in a given zone