Update make_rst.py to match the master version

This does not include master-specific concepts, like
constructors, operators, annotations, and bitfields.
This commit is contained in:
Yuri Sizov
2023-04-10 18:00:15 +02:00
parent b0c399ec8c
commit 0f24d6ecf7
4 changed files with 1153 additions and 597 deletions

View File

@ -384,6 +384,9 @@ void DocData::generate(bool p_basic_types) {
found_type = true;
if (retinfo.type == Variant::INT && retinfo.usage & PROPERTY_USAGE_CLASS_IS_ENUM) {
prop.enumeration = retinfo.class_name;
if (prop.enumeration.begins_with("_")) { //proxy class
prop.enumeration = prop.enumeration.substr(1, prop.enumeration.length());
}
prop.type = "int";
} else if (retinfo.class_name != StringName()) {
prop.type = retinfo.class_name;