Class endstone::PermissionAttachmentInfo¶
ClassList > endstone > PermissionAttachmentInfo
Holds information on a permission and which PermissionAttachment provides it.
#include <endstone/permissions/permission_attachment_info.h>
Public Functions¶
| Type | Name |
|---|---|
| PermissionAttachmentInfo (Permissible & permissible, std::string permission, PermissionAttachment * attachment, bool value) |
|
| PermissionAttachment * | getAttachment () const Gets the attachment providing this permission. |
| Permissible & | getPermissible () const Gets the permissible this is attached to. |
| std::string | getPermission () const Gets the permission being set. |
| bool | getValue () const Gets the value of this permission. |
Public Functions Documentation¶
function PermissionAttachmentInfo¶
inline endstone::PermissionAttachmentInfo::PermissionAttachmentInfo (
Permissible & permissible,
std::string permission,
PermissionAttachment * attachment,
bool value
)
function getAttachment¶
Gets the attachment providing this permission.
This may be nullptr for default permissions (usually parent permissions).
Returns:
Attachment
function getPermissible¶
Gets the permissible this is attached to.
Returns:
Permissible this permission is for
function getPermission¶
Gets the permission being set.
Returns:
Name of the permission
function getValue¶
Gets the value of this permission.
Returns:
Value of the permission
The documentation for this class was generated from the following file include/endstone/permissions/permission_attachment_info.h