IfSetRotateSpeed

class IfSetRotateSpeed : OutgoingGameMessage

If set-rotate-speed packet is used to make a model rotate according to the client's update counter. This only has an effect on model-type components.

Constructors

Link copied to clipboard
constructor(interfaceId: Int, componentId: Int, xSpeed: Int, ySpeed: Int)
constructor(combinedId: Int, xSpeed: Int, ySpeed: Int)

Properties

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

the bitpacked combination of interfaceId and componentId.

Link copied to clipboard

the component on which the model to rotate lives

Link copied to clipboard

the id of the interface on which the component to rotate lives.

Link copied to clipboard
val xSpeed: Int

the speed of the x angle of the model to rotate by each client cycle (20ms/cc), with a value of 1 being equal to 1/2048th of a full circle

Link copied to clipboard
val ySpeed: Int

the speed of the y angle of the model to rotate by each client cycle (20ms/cc), with a value of 1 being equal to 1/2048th of a full circle

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