Skip to content

DataTypes: LWOOBJID.hpp

Alanzote edited this page Dec 25, 2018 · 1 revision

Each Object in LEGO Universe (from items, npcs, players, etc) requires an unique object id (unsigned long long), this ID is used to identify the items in the packets.

CATEGORY

The Category enum is used to identify the type of this object id:

  • STATIC
  • LOCAL
  • GLOBAL
  • SPAWNED

Constructors

  • No Parameters
    • Creates an empty LWOOBJID.
  • unsigned long long
    • Creates a LWOOBJID with specified data.

Methods

  • printData
    • Return Type: void
    • Comment: Prints the data of this LWOOBJID, alongside the category.
  • getFlags
    • Return Type: char
    • Comment: Returns the flags of this LWOOBJID.
  • getPureID
    • Return Type: unsigned long long
    • Comment: Returns the Pure ID of this LWOOBJID.
  • getCategory
    • Return Type: CATEGORY
    • Comment: Returns this LWOOBJID's category, generated from flags.

Operators

The LWOOBJID has the unsigned long long operator, that transforms this class into an unsigned long long, ready to be written to a packet. Other operators are =, effectively setting the data to an unsigned long long.

Clone this wiki locally