You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Move singleton management from ProjectSettings to Engine
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
/*************************************************************************/
|
||||
#include "doc_data.h"
|
||||
|
||||
#include "engine.h"
|
||||
#include "global_constants.h"
|
||||
#include "io/compression.h"
|
||||
#include "io/marshalls.h"
|
||||
@@ -543,14 +544,14 @@ void DocData::generate(bool p_basic_types) {
|
||||
c.constants.push_back(cd);
|
||||
}
|
||||
|
||||
List<ProjectSettings::Singleton> singletons;
|
||||
ProjectSettings::get_singleton()->get_singletons(&singletons);
|
||||
List<Engine::Singleton> singletons;
|
||||
Engine::get_singleton()->get_singletons(&singletons);
|
||||
|
||||
//servers (this is kind of hackish)
|
||||
for (List<ProjectSettings::Singleton>::Element *E = singletons.front(); E; E = E->next()) {
|
||||
for (List<Engine::Singleton>::Element *E = singletons.front(); E; E = E->next()) {
|
||||
|
||||
PropertyDoc pd;
|
||||
ProjectSettings::Singleton &s = E->get();
|
||||
Engine::Singleton &s = E->get();
|
||||
pd.name = s.name;
|
||||
pd.type = s.ptr->get_class();
|
||||
while (String(ClassDB::get_parent_class(pd.type)) != "Object")
|
||||
|
||||
Reference in New Issue
Block a user