add zero-param ConVarChanged typeset signature (#2531)

This commit is contained in:
SCP-076
2026-08-02 14:36:40 +00:00
committed by GitHub
parent 83521ba442
commit 84c633c4da
+17 -6
View File
@@ -57,13 +57,24 @@ enum ConVarQueryResult
};
/**
* Called when a console variable's value is changed.
*
* @param convar Handle to the convar that was changed.
* @param oldValue String containing the value of the convar before it was changed.
* @param newValue String containing the new value of the convar.
* Any of the following prototypes will work as a ConVarChanged callback.
*/
typedef ConVarChanged = function void (ConVar convar, const char[] oldValue, const char[] newValue);
typeset ConVarChanged
{
/**
* Called when a console variable's value is changed.
*/
function void ();
/**
* Called when a console variable's value is changed.
*
* @param convar Handle to the convar that was changed.
* @param oldValue String containing the value of the convar before it was changed.
* @param newValue String containing the new value of the convar.
*/
function void (ConVar convar, const char[] oldValue, const char[] newValue);
};
/**
* Creates a new console variable.