Skip to content

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.

inline PermissionAttachment * endstone::PermissionAttachmentInfo::getAttachment () const

This may be nullptr for default permissions (usually parent permissions).

Returns:

Attachment


function getPermissible

Gets the permissible this is attached to.

inline Permissible & endstone::PermissionAttachmentInfo::getPermissible () const

Returns:

Permissible this permission is for


function getPermission

Gets the permission being set.

inline std::string endstone::PermissionAttachmentInfo::getPermission () const

Returns:

Name of the permission


function getValue

Gets the value of this permission.

inline bool endstone::PermissionAttachmentInfo::getValue () const

Returns:

Value of the permission



The documentation for this class was generated from the following file include/endstone/permissions/permission_attachment_info.h