| Parameter | Description |
|---|---|
| before | First archetype |
| after | Second archetype |
| addedTypes | Buffer to hold type indices of types present in "after" but not in "before". Buffer must be large enough to potentially hold all the types present in "after" |
| addedTypesCount | How many types were put into the addedTypes buffer |
| removedTypes | Buffer to hold type indices of types present in "before" but not in "after". Buffer must be large enough to potentially hold all the types present in "before" |
| removedTypesCount | How many types were put into the removedTypes buffer |
Calculates the difference between two archetypes. Reports what components need to be added to and removed from "before" in order to convert it to "after".