WorldEntityProtocol

class WorldEntityProtocol(allocator: ByteBufAllocator, exceptionHandler: WorldEntityAvatarExceptionHandler, factory: WorldEntityAvatarFactory, worker: ProtocolWorker = DefaultProtocolWorker(), zoneIndexStorage: ZoneIndexStorage)

The world entity protocol class will track everything related to world entities.

Parameters

factory

the avatar factory used to provide instances of world entity avatars.

Constructors

Link copied to clipboard
constructor(allocator: ByteBufAllocator, exceptionHandler: WorldEntityAvatarExceptionHandler, factory: WorldEntityAvatarFactory, worker: ProtocolWorker = DefaultProtocolWorker(), zoneIndexStorage: ZoneIndexStorage)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun alloc(idx: Int, oldSchoolClientType: OldSchoolClientType): WorldEntityInfo

Allocates a new instance of world entity info.

Link copied to clipboard

Deallocates the world entity info, allowing for it to be re-used in the future.

Link copied to clipboard
fun update()

Updates all the world entities that exist in one go.