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
Permissible & getPermissible () const
std::string getPermission () const
bool getValue () const

Public Functions Documentation

function PermissionAttachmentInfo

inline endstone::PermissionAttachmentInfo::PermissionAttachmentInfo (
    Permissible & permissible,
    std::string permission,
    PermissionAttachment * attachment,
    bool value
) 

function getAttachment

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

Gets the attachment providing this permission. This may be null for default permissions (usually parent permissions).

Returns:

Attachment


function getPermissible

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

Gets the permissible this is attached to

Returns:

Permissible this permission is for


function getPermission

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

Gets the permission being set

Returns:

Name of the permission


function getValue

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

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