Skip to content

Commit 06936b0

Browse files
committed
Added class info for ConVar
1 parent 68351c9 commit 06936b0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/core/modules/cvars/cvars_wrap.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,22 @@ void export_convar(scope _cvars)
248248

249249
ADD_MEM_TOOLS(ConVar)
250250
;
251+
252+
BEGIN_CLASS_INFO(ConVar)
253+
FUNCTION_INFO(GetFloat)
254+
FUNCTION_INFO(GetInt)
255+
FUNCTION_INFO(GetBool)
256+
FUNCTION_INFO(GetString)
257+
FUNCTION_INFO(Revert)
258+
FUNCTION_INFO(GetDefault)
259+
FUNCTION_INFO(GetMin)
260+
FUNCTION_INFO(GetMax)
261+
BEGIN_FUNCTION_INFO_LIST("SetValue")
262+
FUNCTION_INFO_OVERLOAD(void, SetValue, const char*)
263+
FUNCTION_INFO_OVERLOAD(void, SetValue, float)
264+
FUNCTION_INFO_OVERLOAD(void, SetValue, int)
265+
END_FUNCTION_INFO_LIST()
266+
END_CLASS_INFO()
251267
}
252268

253269

0 commit comments

Comments
 (0)