An event listener for events emitted by the ObjectTracker
.
An event listener for events emitted by the PetTracker
.
An event listener for events emitted by the PlayerTracker
.
A type which can be created using new
syntax.
The name given to all AccountInUseError
s.
The endpoint used to retreive the latest resources.
The endpoint used to retrieve the latest client.
{{version}}
needs to be replaced with the current version before use.
The endpoint used to check the version of the latest client.
A regular expression which matches the local part and domain of an email address.
The endpoint used to retreive file contents from the main nrelay repository.
The endpoint used to retreive the list of servers and the character information about an account.
A list of all packet types that are valid for a packet hook.
Indicates that the decorated class is a Library which may contain packet hooks.
The library information.
Indicates that the decorated method should be called when it's packet type is received by a client.
Replaces the local part and domain of an email address with asterisks. This is generally used to avoid leaking information through log files.
The guid to censor.
Creates a connection to the specified host and port, optionally through a provided proxy. Returns a promise which is resolved when the connection has been established.
The host to connect to.
The port to connect to.
An optional proxy to use when connecting.
Returns a promise which resolves after ms
milliseconds.
The number of milliseconds to wait.
Encrypts the text with a hard-coded public key.
The text to encrypt.
Returns a PlayerData
object with default properties.
Returns a copy of the hooks which have been loaded.
Returns a copy of the loaded libraries.
Returns the current time in HH:mm:ss format.
Generates a suitable amount of time to wait before initiating a connection to ensure the game server is not overloaded. Connecting too quickly can result in connections being rejected.
The host to get the wait time for.
Determines whether or not the given condition
value has the
effect
bit set.
The condition stat to check.
The effect to determine if the condition value has or not.
Checks whether or not the point
falls inside of a square
of size squareSize
with its center at squarePoint
.
The point to check.
The square which the point might be inside of.
The size of the square.
Returns a string which is at least paddingLength
characters long, which
contains the original str
and spaces to fill the remaining space if there is any.
The string to pad.
The number of spaces to add.
Parses the account info XML into a CharacterInfo
object.
The XML to parse.
Parses the server list XML into a dictionary of servers keyed by server name.
The XML to parse.
Processes the data
and returns the resulting PlayerData
object.
The data to process.
Processes the data
and returns the result. If currentData
is provided, it will be
used as a starting point for the returned PlayerData
.
The data to process.
The existing PlayerData
.
Process a list of stats and returns the result. If currentData
is provided, it will be
used as a starting point for the returned PlayerData
.
The stats to process.
The existing PlayerData
.
The HTTP headers to include in each request.
Configuration settings which affect how nrelay behaves.
Whether or not to provide a higher detail of logging.
Whether or not to load plugins from the default path.
Whether or not to enable the FileLogger
(save logs to a file).
Generated using TypeDoc
A ground tile with some additional info.