diff options
| author | Juan Linietsky | 2014-02-22 20:28:19 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-02-22 20:28:19 -0300 |
| commit | 7ca29bfaa7a23d06374c2456e0360c911bd9aa3e (patch) | |
| tree | dc615e0c7a55dff92af81be0ff2555e1f9485eba /tools/doc/doc_data.cpp | |
| parent | b62ec387f340220e11902daab8484fcb85d28cda (diff) | |
| download | godot-7ca29bfaa7a23d06374c2456e0360c911bd9aa3e.tar.gz godot-7ca29bfaa7a23d06374c2456e0360c911bd9aa3e.tar.zst godot-7ca29bfaa7a23d06374c2456e0360c911bd9aa3e.zip | |
Diffstat (limited to 'tools/doc/doc_data.cpp')
| -rw-r--r-- | tools/doc/doc_data.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp index 5167b9a0b..35f114064 100644 --- a/tools/doc/doc_data.cpp +++ b/tools/doc/doc_data.cpp @@ -530,6 +530,17 @@ void DocData::generate(bool p_basic_types) { } + List<Pair<String,Variant> > cinfo; + lang->get_public_constants(&cinfo); + + + for(List<Pair<String,Variant> >::Element *E=cinfo.front();E;E=E->next()) { + + ConstantDoc cd; + cd.name=E->get().first; + cd.value=E->get().second; + c.constants.push_back(cd); + } } } |
