CClassicMode

Classic Mode handler

Type: Reference type

Methods

Declaration Description
bool IsStateDefined() const Returns whether the Classic Mode state setting is defined. If not defined, no voting has taken place to choose whether or not to enable Classic Mode.
void ResetState() Resets the Classic Mode state setting to undefined.
bool IsEnabled() const Returns whether Classic Mode is enabled or not.
void SetEnabled(const bool fEnabled) Enable or disable Classic Mode.
void ForceItemRemap(const bool fEnabled) Forces item remapping even if classic mode is disabled.
void Toggle() Toggles Classic Mode.
void EnableMapSupport() Tells the game that the current map wants to use Classic Mode. Must be called in MapInit. Cannot be disabled once set.This will ask players whether they want to enable Classic Mode. Reset on map change.
bool ShouldRestartOnChange() const Returns whether the map should restart if Classic Mode is changed or not. Defaults to true if not changed by a script. Reset on map change.
void SetShouldRestartOnChange(const bool bShouldRestart) Sets whether the map should restart if Classic Mode is changed.
void SetItemMappings(array<ItemMapping@>@ pItemMappings) Sets the item mappings to use from now on.
Does not affect previous mappings.
Pass null to disable all mappings.
const string& FindItemMapping(const string& in szItemName) const Gets the item mapped to the given item name, or an empty string if no mapping exists.