cw.door classclient
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
GetAccessList()client
Returns the access list of the managed door.
GetEntity()client
Returns the door being managed in the door panel.
GetName()client
Returns the name of the managed door.
GetOwner()client
Returns the owner of the managed door.
GetPanel()client
Returns the door management panel.
HasSharedAccess()client
Returns whether the managed door shares its access list with its parent door.
HasSharedText()client
Returns whether the managed door shares its text with its parent door.
IsDoorPanelOpen()client
Returns whether the door management panel is open.
IsParent()client
Returns whether the managed door is the parent of other doors.
IsUnsellable()client
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_Namephrase if it has none
Returns the owner of the managed door.
Returns
- Player The owner, or
nilif the door has no valid owner
Returns the door management panel.
Returns
- Panel The panel, or
nilif it is not open
Returns whether the door management panel is open.
Returns
- Boolean
trueif it is open,nilotherwise
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