alloc
fun alloc(index: Int, sizeX: Int, sizeZ: Int, x: Int, z: Int, level: Int, angle: Int): WorldEntityAvatar
Allocates a new world entity with the provided arguments.
Return
either a new world entity avatar, or a pooled one that has been updated to contain the provided params.
Parameters
index
the index of the world entity
size X
the width of the world entity in zones (8 tiles/zone)
size Z
the height of the world entity in zones (8 tiles/zone)
x
the absolute x coordinate of the world entity where it is being portrayed in the root world.
z
the absolute z coordinate of the world entity where it is being portrayed in the root world.
level
the height level of the world entity.