OpObj

class OpObj : IncomingGameMessage

OpObj messages are fired when the player interacts with an obj on the ground, e.g. picking an obj up off the ground. This does not include examining objs.

Constructors

Link copied to clipboard
constructor(id: Int, x: Int, z: Int, controlKey: Boolean, op: Int)

Properties

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

whether the control key was held down, used to invert movement speed

Link copied to clipboard
val id: Int

the id of the obj interacted with

Link copied to clipboard
val op: Int

the option clicked, ranging from 1 to 5 (inclusive)

Link copied to clipboard
val x: Int

the absolute x coordinate of the obj on the ground

Link copied to clipboard
val z: Int

the absolute z coordinate of the obj on the ground

Functions

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