Ark Server API (ASA) - Wiki
|
#include <IConsoleManager.h>
Interface for console variables
Definition at line 421 of file IConsoleManager.h.
Get the internal value as a bool, works on bools, ints and floats.
|
inlinevirtual |
Get the saved off default value, in a cvar variable, if one was created
Definition at line 480 of file IConsoleManager.h.
Get the internal value as float (works on all types).
Get the internal value as int (should not be used on strings).
Get the internal value as string (works on all types).
Generic versions for templated code
Definition at line 446 of file IConsoleManager.h.
|
pure virtual |
|
inline |
Set the internal value from the specified bool.
Definition at line 509 of file IConsoleManager.h.
|
pure virtual |
Set the internal value from the specified string.
SetBy | anything in ECVF_LastSetMask e.g. ECVF_SetByScalability |
|
inline |
Set the internal value from the specified float.
Definition at line 524 of file IConsoleManager.h.
|
inline |
Set the internal value from the specified int.
Definition at line 518 of file IConsoleManager.h.
|
pure virtual |
Allows to specify a callback function that is called when the console variable value changes. Is even called if the value is the same as the value before. Will always be on the game thread. This can be dangerous (instead try to use RegisterConsoleVariableSink())