From d2aef4c4396e8d68151c39a71ef08d396a4b0044 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 11 Sep 2021 20:31:11 +0800 Subject: Expose enum related methods in ClassDB --- doc/classes/ClassDB.xml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/ClassDB.xml b/doc/classes/ClassDB.xml index 063233fe50..62165a5fce 100644 --- a/doc/classes/ClassDB.xml +++ b/doc/classes/ClassDB.xml @@ -30,6 +30,23 @@ Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required. + + + + + + + Returns an array with all the keys in [code]enum[/code] of [code]class[/code] or its ancestry. + + + + + + + + Returns an array with all the enums of [code]class[/code] or its ancestry. + + @@ -38,6 +55,15 @@ Returns the value of the integer constant [code]name[/code] of [code]class[/code] or its ancestry. Always returns 0 when the constant could not be found. + + + + + + + Returns which enum the integer constant [code]name[/code] of [code]class[/code] or its ancestry belongs to. + + @@ -87,6 +113,15 @@ Returns an array with all the signals of [code]class[/code] or its ancestry if [code]no_inheritance[/code] is [code]false[/code]. Every element of the array is a [Dictionary] as described in [method class_get_signal]. + + + + + + + Returns whether [code]class[/code] or its ancestry has an enum called [code]name[/code] or not. + + -- cgit v1.2.3