| 133 | } |
| 134 | |
| 135 | bool AFCEntity::HaveMask(const std::string& name, ArkDataMask feature) const |
| 136 | { |
| 137 | ARK_ASSERT_RET_VAL(class_meta_ != nullptr, false); |
| 138 | |
| 139 | auto index = class_meta_->GetIndex(name); |
| 140 | ARK_ASSERT_RET_VAL(index > 0, false); |
| 141 | |
| 142 | return HaveMask(index, feature); |
| 143 | } |
| 144 | |
| 145 | bool AFCEntity::HaveMask(const uint32_t index, ArkDataMask feature) const |
| 146 | { |