AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PlayerSetting Struct Reference

#include "PlayerSettings.h"

Public Member Functions

bool HasFlag (uint32 flag)
 
bool IsEnabled (uint32 equals=1)
 
void AddFlag (uint32 flag)
 
void RemoveFlag (uint32 flag)
 

Public Attributes

uint32 value
 

Detailed Description

Member Function Documentation

◆ AddFlag()

void PlayerSetting::AddFlag ( uint32  flag)
inline
44{ value = value | flag; }
uint32 value
Definition: PlayerSettings.h:40

References value.

Referenced by player_settings_commandscript::HandleSettingsAnnouncerFlags().

◆ HasFlag()

bool PlayerSetting::HasFlag ( uint32  flag)
inline
42{ return (value & flag) != 0; }

References value.

Referenced by ChatHandler::SendWorldTextOptional().

◆ IsEnabled()

bool PlayerSetting::IsEnabled ( uint32  equals = 1)
inline
43{ return value == equals; }

References value.

◆ RemoveFlag()

void PlayerSetting::RemoveFlag ( uint32  flag)
inline

Member Data Documentation

◆ value