WorldEntityAvatarFactory

class WorldEntityAvatarFactory(allocator: ByteBufAllocator, zoneIndexStorage: ZoneIndexStorage)

An avatar factory for world entities. This class will be responsible for allocating and releasing world entity avatars, allowing them to be pooled and re-used, if needed.

Constructors

Link copied to clipboard
constructor(allocator: ByteBufAllocator, zoneIndexStorage: ZoneIndexStorage)

Functions

Link copied to clipboard
fun alloc(index: Int, sizeX: Int, sizeZ: Int, fineX: Int, fineY: Int, fineZ: Int, level: Int, angle: Int): WorldEntityAvatar

Allocates a new world entity with the provided arguments.

Link copied to clipboard

Releases a world entity avatar back into the pool, allowing it to be re-used in the future.