CamLookAt

class CamLookAt : OutgoingGameMessage

Cam lookat packet is used to make the camera look towards a certain coordinate in the build area. It is important to note that if this is sent together with a map reload, whether this packet comes before or after the map reload makes a difference - as the build area itself changes.

Constructors

Link copied to clipboard
constructor(xInBuildArea: Int, zInBuildArea: Int, height: Int, rate: Int, rate2: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard

the dest x coordinate within the build area, in range of 0 to 103 (inclusive)

Link copied to clipboard

the dest z coordinate within the build area, in range of 0 to 103 (inclusive)

Link copied to clipboard
val height: Int

the height of the camera

Link copied to clipboard
val rate: Int

the constant speed at which the camera looks towards to the new coordinate

Link copied to clipboard
val rate2: Int

the speed increase as the camera looks towards the end coordinate.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String