OpLocT

class OpLocT : IncomingGameMessage

OpLocT messages are fired whenever an interface component is targeted on a loc, which, as of revision 204, includes using items from the player's inventory on locs - the OpLocU message was deprecated.

Constructors

Link copied to clipboard
constructor(id: Int, x: Int, z: Int, controlKey: Boolean, selectedCombinedId: CombinedId, selectedSub: Int, selectedObj: 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 base(non-multi-transformed) id of the loc the component was used on

Link copied to clipboard

the bitpacked combination of selectedInterfaceId and selectedComponentId.

Link copied to clipboard

the component id being used on the loc

Link copied to clipboard

the interface id of the selected component

Link copied to clipboard

the obj on the selected subcomponent, or -1 if none exists

Link copied to clipboard

the subcomponent of the selected component, or -1 of none exists

Link copied to clipboard
val x: Int

the absolute x coordinate of the south-western corner of the loc

Link copied to clipboard
val z: Int

the absolute z coordinate of the south-western corner of the loc

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