| 87 | } |
| 88 | |
| 89 | void QueryDescription::DebugPrint(QueryIndex index, EntitySystemHelpersBase& eh) const |
| 90 | { |
| 91 | auto const& queries = eh.GetEntityWorld()->Queries; |
| 92 | |
| 93 | std::cout << "Query "; |
| 94 | if ((Flags & QueryFlags::Modified) == QueryFlags::Modified) std::cout << " Modified"; |
| 95 | if ((Flags & QueryFlags::Added) == QueryFlags::Added) std::cout << " Added"; |
| 96 | if ((Flags & QueryFlags::Removed) == QueryFlags::Removed) std::cout << " Removed"; |
| 97 | if (queries.PersistentQueries.find(index) != queries.PersistentQueries.end()) std::cout << " Persistent"; |
| 98 | if (queries.AliveQueries.find(index) != queries.AliveQueries.end()) std::cout << " Alive"; |
| 99 | if (queries.RemovedQueries.find(index) != queries.RemovedQueries.end()) std::cout << " Removed2"; |
| 100 | if (queries.DeadQueries.find(index) != queries.DeadQueries.end()) std::cout << " Dead"; |
| 101 | if (queries.DeadOneFrameQueries.find(index) != queries.DeadOneFrameQueries.end()) std::cout << " DeadOneFrame"; |
| 102 | std::cout << std::endl; |
| 103 | |
| 104 | PrintRange(eh, "Includes", GetIncludes()); |
| 105 | PrintRange(eh, "IncludeAny", GetIncludeAny()); |
| 106 | PrintRange(eh, "Excludes", GetExcludes()); |
| 107 | PrintRange(eh, "AddOrs", GetAddOrs()); |
| 108 | PrintRange(eh, "AddAnds", GetAddAnds()); |
| 109 | PrintRange(eh, "OneFrames", GetOneFrames()); |
| 110 | PrintRange(eh, "OptionalOneFrames", GetOptionalOneFrames()); |
| 111 | PrintRange(eh, "Optionals", GetOptionals()); |
| 112 | PrintRange(eh, "Immediates", GetImmediates()); |
| 113 | PrintRange(eh, "Writes", GetWrites()); |
| 114 | |
| 115 | std::cout << std::endl; |
| 116 | } |
| 117 | |
| 118 | ComponentTypeEntry const* ComponentRegistry::Get(ComponentTypeIndex index) const |
| 119 | { |
nothing calls this directly
no test coverage detected