Defines the client-side cw.door library, read-only accessors for the door being managed in the door panel.

They return the door's entity, owner, name, access list and its parent, sharing and unsellable flags as sent by the server, and the panel itself.

Summary

Methods

Returns the access list of the managed door.
Returns the door being managed in the door panel.
GetName()client
Returns the name of the managed door.
Returns the owner of the managed door.
Returns the door management panel.
Returns whether the managed door shares its access list with its parent door.
Returns whether the managed door shares its text with its parent door.
Returns whether the door management panel is open.
Returns whether the managed door is the parent of other doors.
Returns whether the managed door cannot be sold.

Methods

Returns the access list of the managed door.

The list is updated by the server while the panel is open.

Returns

  • Map<Number> Door access levels keyed by player

Returns the door being managed in the door panel.

Returns

  • Entity The door entity

Returns the name of the managed door.

Returns

  • String The door's name, or the #Doors_Name phrase if it has none

Returns the owner of the managed door.

Returns

  • Player The owner, or nil if the door has no valid owner

Returns the door management panel.

Returns

  • Panel The panel, or nil if it is not open

Returns whether the managed door shares its access list with its parent door.

Returns

  • Boolean Whether access is shared, as sent by the server

Returns whether the managed door shares its text with its parent door.

Returns

  • Boolean Whether the text is shared, as sent by the server

Returns whether the door management panel is open.

Returns

  • Boolean true if it is open, nil otherwise

Returns whether the managed door is the parent of other doors.

Returns

  • Boolean Whether the door is a parent

Returns whether the managed door cannot be sold.

Returns

  • Boolean Whether the door is unsellable

Defined in