7 template <
typename Visitor>
8 concept StaticPropIteratee =
requires(Visitor visitor) {
9 { visitor(std::declval<const Structs::StaticPropV4&>(), std::declval<const char*>()) };
10 { visitor(std::declval<const Structs::StaticPropV5&>(), std::declval<const char*>()) };
11 { visitor(std::declval<const Structs::StaticPropV6&>(), std::declval<const char*>()) };
12 { visitor(std::declval<const Structs::StaticPropV7Multiplayer2013&>(), std::declval<const char*>()) };
22 if (!bsp.staticProps.has_value() || !bsp.staticPropDictionary.has_value()) {
27 [&bsp, &iteratee](
const auto props) {
28 for (
const auto& prop : props) {
29 const auto dictionaryIndex = prop.propType;
30 if (dictionaryIndex >= bsp.staticPropDictionary->size()) {
35 const auto*
const modelPath = bsp.staticPropDictionary.value()[dictionaryIndex].modelName.data();
36 iteratee(prop, modelPath);
39 bsp.staticProps.value()
Definition: BSPParser.hpp:12
void iterateStaticProps(const Bsp &bsp, Iteratee iteratee)
Definition: prop-accessors.hpp:21