MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CountNestedClasses

Function CountNestedClasses

apps/tools/Tools/commands/LintCommand.cpp:46–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46int CountNestedClasses(const ParamEntry& entry)
47{
48 const ParamClass* cls = entry.GetClassInterface();
49 if (!cls)
50 {
51 return 0;
52 }
53
54 int count = 0;
55 for (int i = 0; i < cls->GetEntryCount(); ++i)
56 {
57 const ParamEntry& child = cls->GetEntry(i);
58 if (!child.IsClass())
59 {
60 continue;
61 }
62
63 ++count;
64 count += CountNestedClasses(child);
65 }
66
67 return count;
68}
69
70bool HasPlayerAssignment(const ParamEntry& entry)
71{

Callers 1

LintMissionSectionFunction · 0.85

Calls 3

GetClassInterfaceMethod · 0.80
GetEntryCountMethod · 0.45
IsClassMethod · 0.45

Tested by

no test coverage detected