Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextPacket

A class that represents a TextPacket

Hierarchy

  • TextPacket

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TextPacket(type: number, text?: string): TextPacket
  • Creates a new Text Packet

    Parameters

    • type: number

      The type to use

    • Optional text: string

      The text/string for it to contain

    Returns TextPacket

Properties

Optional text

text: string

The text/string for it to contain

type

type: number

The type to use

Methods

Static from

  • from(type?: number, ...values: string[]): TextPacket
  • Converts a text or a packet to a TextPacket class

    Parameters

    • Optional type: number

      The type to set for the packet

    • Rest ...values: string[]

      The text to place to the packet

    Returns TextPacket

Generated using TypeDoc