doc: update stamp example (#442)
This commit is contained in:
committed by
Michele Caini
parent
bb050e2660
commit
e7521445e9
@@ -765,7 +765,7 @@ the type identifiers and their opaque functions for stamping. As an example:
|
||||
```
|
||||
template<typename Type>
|
||||
void stamp(const entt::registry &from, const entt::entity src, entt::registry &to, const entt::entity dst) {
|
||||
to.assign_or_replace<Type>(dst, from.get_or_assign<Type>(src));
|
||||
to.assign_or_replace<Type>(dst, from.get<Type>(src));
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user