sparse_set: ::get -> ::value (to avoid hiding from derived classes)

This commit is contained in:
Michele Caini
2022-12-22 13:10:57 +01:00
parent 0558010479
commit fde1a524ea
5 changed files with 18 additions and 18 deletions

View File

@@ -28,7 +28,7 @@ TEST(Example, EntityCopy) {
for(auto [id, storage]: registry.storage()) {
// discard the custom storage because why not, this is just an example after all
if(id != "custom"_hs && storage.contains(src)) {
storage.push(dst, storage.get(src));
storage.push(dst, storage.value(src));
}
}
@@ -67,7 +67,7 @@ TEST(Example, DifferentRegistryTypes) {
for(auto [id, storage]: src.storage()) {
if(auto *other = dst.storage(id); other && storage.contains(entity)) {
other->push(copy, storage.get(entity));
other->push(copy, storage.value(entity));
}
}