rs317outboundmessages
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

rs317outboundmessages

Schema for server -> client messages in RuneScape revision 317

Installation

npm install rs317outboundmessages

Usage

import { SpinCameraMessage } from "rs317outboundmessages";

const message: SpinCameraMessage = {
    x: 200,
    y: 150,
    height: 18,
    speed: 6,
    angle: 32
};

player.send(message);

Regarding encoding

The schema here is not a 1:1 match to the data received by the client but rather the actual data the server is sending.

For example, when the client reads a name it is always done as an encoded 64-bit int. In these schemas, that will simply be a string - the encoding is an implementation detail of the network layer.

Similarly, chat messages pack colours and effects into a single number. They are separate in the schema.

Package Sidebar

Install

npm i rs317outboundmessages

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

21.6 kB

Total Files

79

Last publish

Collaborators

  • jameskmonger