permissions

package
v0.0.0-...-5996917 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Permissions

type Permissions uint32
const (
	None          Permissions = 0
	Anyone        Permissions = 1 << iota
	Player                    //2
	Builder                   //4
	Dungeonmaster             //8
	Gamemaster                //16
	God
	NPC
	Fighter
	Mage
	Thief
	Paladin
	Cleric
	Ranger
	Barbarian
	Bard
	Monk
)

func (*Permissions) AddFlag

func (f *Permissions) AddFlag(flag Permissions)

func (*Permissions) ClearFlag

func (f *Permissions) ClearFlag(flag Permissions)

func (Permissions) HasAnyFlags

func (f Permissions) HasAnyFlags(flags ...Permissions) bool

func (Permissions) HasFlag

func (f Permissions) HasFlag(flag Permissions) bool

func (Permissions) HasFlags

func (f Permissions) HasFlags(flags ...Permissions) bool

func (*Permissions) ToggleFlag

func (f *Permissions) ToggleFlag(flag Permissions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL