v0.13.8

C_GameRules

namespaceavailable in: camelot

Status in wowlua

31 functions: 0 implemented, 10 recorded, 19 guessed, 2 not implemented. 7 events, 2 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AccountHasSDEnabledWhether the account has the SD (standard definition) graphics option turned on. · by wowlua
(): boolean
recorded
AutoConnectToGameModeRealmConnects to a realm of the given game mode. · by wowlua
(gameModeRecordID: number)
guessed
DoesGameModeHavePromoWhether the game mode has a promotion to show. · by wowlua
(gameModeRecordID: number): boolean
guessed
GetActiveGameModeReturns the active game mode. · by wowlua
(): GameMode
recorded
GetCurrentEventRealmQueuesReturns the event realm queues the player is in. · by wowlua
(): EventRealmQueues
guessed
GetCurrentGameModeDisplayInfoReturns the display information of the current game mode, or nothing. · by wowlua
(): GameModeDisplayInfo?
guessed
GetCurrentGameModeRecordIDReturns the record ID of the current game mode. · by wowlua
(): number
guessed
GetDisplayedGameModeRecordIDAtIndexReturns the record ID of the displayed game mode at the given index. · by wowlua
(displayIndex: number): number
guessed
GetForeverExperiencePresetReturns the chosen experience preset, or nothing. · by wowlua
(): ForeverExperiencePreset?
recorded
GetGameModeDisplayInfoByRecordIDReturns the display information of a game mode, or nothing. · by wowlua
(gameModeRecordID: number): GameModeDisplayInfo?
guessed
GetGameModeGlueScreenNameReturns the name of the login screen for the current game mode. · by wowlua
(): string
guessed
GetGameModePromoGlobalStringReturns the name of the global string with a game mode's promotion text. · by wowlua
(gameModeRecordID: number): string
guessed
GetGameRuleAsFloatReturns the numeric value specified in the Game Rule, multiplied by 0.1 for every decimal place requested
(gameRule: GameRule, decimalPlaces: number): number
recorded
GetGameRuleAsFrameStrataReturns the value specified in the Game Rule converted to a frame strata
(gameRule: GameRule): string
guessed
GetNumDisplayedGameModesReturns the number of game modes shown for selection. · by wowlua
(): number
guessed
IsCharacterlessLoginActiveWhether the player is logged in without a character. · by wowlua
(): boolean
guessed
IsClassAllowedForGameModeWhether the class can be played in the current game mode. · by wowlua
(classID: number): boolean
guessed
IsGameModeEnabledWhether the game mode is enabled. · by wowlua
(gameModeRecordID: number): boolean
guessed
IsGameRuleActiveWhether the game rule is active. · by wowlua
(gameRule: GameRule): boolean
recorded
IsHardcoreActiveWhether the realm is a Hardcore realm. · by wowlua
(): boolean
recorded
IsMultiActionBarVisibilityForcedWhether the game mode forces the extra action bars to be shown. · by wowlua
(): boolean
recorded
IsPersonalResourceDisplayEnabledChecks the game rule as well as nameplateShowSelf
(): boolean
guessed
IsPlunderstormWhether the current game mode is Plunderstorm. · by wowlua
(): boolean
recorded
IsSDHDToggleEnabledWhether the SD/HD graphics toggle is available. · by wowlua
(): boolean
recorded
IsSelfFoundAllowedWhether Self-Found mode can be chosen. · by wowlua
(): boolean
guessed
IsStandardWhether the current game mode is the standard one. · by wowlua
(): boolean
recorded
IsWoWHackWhether the current game mode is the WoW Hack game mode. · by wowlua
(): boolean
guessed
SetForeverExperiencePresetSets the experience preset. · by wowlua
not in Blizzard's documentation
guessed
SetForeverExperiencePresetPostLoginNo description yet.
(preset: ForeverExperiencePreset)
not implemented
SetForeverExperiencePresetPreLoginNo description yet.
(preset: ForeverExperiencePreset)
not implemented
SetSDHDToggleValueSwitches between SD and HD graphics. · by wowlua
(setToSD: boolean, usageLocation: SdToggleUsageLocationUI)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
ACTIVE_GAME_MODE_UPDATEDgameMode: GameModenot implemented
AVAILABLE_GAME_MODES_UPDATEDno payloadnot implemented
EVENT_REALM_QUEUES_UPDATEDeventRealmQueues: EventRealmQueuesnot implemented
GAME_MODE_DISPLAY_INFO_UPDATEDno payloadimplemented
GAME_MODE_DISPLAY_MODE_TOGGLE_DISABLEDgameModeRecordID: number, disabled: booleannot implemented
GAME_RULES_CHANGEDno payloadimplemented
SETTINGS_HEADER_TEXT_UPDATEno payloadnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("ACTIVE_GAME_MODE_UPDATED").

Structures

  • GameModeDisplayInfo · logo, logoHeight, logoVerticalOffset, logoShrunkenHeight, logoUsesDarkBackdrop, characterCreateExtraHeight, characterCreateOuterBorder

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (GameRules system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.