Package-level declarations

Types

Link copied to clipboard
class EventAppletFocus(val inFocus: Boolean) : IncomingGameMessage

Applet focus events are sent whenever the client either loses or gains focus. This can be seen by minimizing and maximizing the clients.

Link copied to clipboard
class EventCameraPosition : IncomingGameMessage

Camera position events are sent whenever the client's camera changes position, at a maximum frequency of 20 client cycles (20ms/cc).

Link copied to clipboard
class EventKeyboard(val lastTransmittedKeyPress: Int, val keysPressed: EventKeyboard.KeySequence) : IncomingGameMessage

Keyboard events are transmitted at a maximum frequency of every 20 milliseconds. This means that - almost always - a single key is only sent in each packet, as it is very unlikely to get more than one key pressed within a 20-millisecond window, even when trying. While the packet does send the lastTransmittedKeyPress per key pressed, there is a flaw in the logic and any subsequent keys after the first will always write a value of 0. For this reason, in order to reduce the memory footprint of this message, we omit any subsequent timestamps and reduce our keys to a byte array value class for even further compression. If the time delta is greater than 16,777,215 milliseconds since the last key transmission, the lastTransmittedKeyPress value will be 16,777,215.

Link copied to clipboard
class EventMouseClick : IncomingGameMessage

Mouse click messages are sent whenever the user clicks with the right or left mouse button, and if the "Middle mouse button controls camera" is disabled, middle buttons (the scroll wheel itself).

Link copied to clipboard
class EventMouseMove : IncomingGameMessage

Mouse move messages are sent when the user moves their mouse across the client.

Link copied to clipboard
class EventMouseScroll(val mouseWheelRotation: Int) : IncomingGameMessage

Mouse scroll message is sent whenever the user scrolls using their mouse.

Link copied to clipboard
class EventNativeMouseClick : IncomingGameMessage

Mouse click messages are sent whenever the user clicks with the right or left mouse button, and if the "Middle mouse button controls camera" is disabled, middle buttons (the scroll wheel itself).

Link copied to clipboard
class EventNativeMouseMove : IncomingGameMessage

Mouse move messages are sent when the user moves their mouse across the client, in this case, on the enhanced C++ clients.