Differ to find difference between two OptocRoot.
More...
#include <differ/differ.hpp>
Differ to find difference between two OptocRoot.
◆ find_difference()
Finds the difference between two OptocRoot
*.
- Parameters
-
old_root | The old "base" batch. It is compared with new_root . |
new_root | New batch |
- Returns
std::vector
with octrees (OptocPatchTree
) from new_root
that are either absent from old_root
or have changed nodes
- Note
- This method is useful for creating
OptocPatchRoot
. For example, you have a base game patch - old_root
, you made some changes and ended up with new_root
, then you can call this method, which will return the octrees that have been changed. Then you can insert these octrees into the desired patch in OptocPatchRoot
.
The documentation for this class was generated from the following file: