Module: packet

Requires

Methods

(static) fromStructuredClone(packetClone) → {Object}

Parameters:
Name Type Description
packetClone Object packet clone
Source:
Returns:
new packet object with data from packet clone
Type
Object

(static) newPacketFromTag(tag) → {Object}

Allocate a new packet
Parameters:
Name Type Description
tag String property name from module:enums.packet
Source:
Returns:
new packet object with type based on tag
Type
Object

(inner) packetClassFromTagName(tag) → {String}

Convert tag name to class name
Parameters:
Name Type Description
tag String property name from module:enums.packet
Source:
Returns:
Type
String