Class for abstracting the concept of ownership regarding a networked object or component.
A component that is owned by another user can not be modified through networking (the server will reject changes)

Constructors

Accessors

  • get hasOwnership(): boolean

    Returns boolean

  • get isConnected(): boolean

    Checks if Needle Engine networking is connected to a websocket. Note that this is not equal to being connected to a room. If you want to check if Needle Engine is connected to a networking room use the isInRoom property.

    Returns boolean

    true if connected to the websocket.

  • get isOwned(): undefined | boolean

    Returns undefined | boolean

    true of anyone has ownership

Methods

  • Returns void

  • Returns void