update method
Update the system
Implementation
@override
void update(double deltaTime) {
for (final archetype in world.queryArchetypes(const [
AnimationPlayerComponent,
ModelComponent,
])) {
final players = archetype.getColumn(AnimationPlayerComponent)!;
final modelColumn = archetype.getColumn(ModelComponent)!;
for (var row = 0; row < archetype.length; row++) {
if (!archetype.entityAt(row).isActiveInHierarchy) continue;
final path = (modelColumn[row] as ModelComponent).model;
final model = path.isEmpty ? null : models.get(path);
_advance(players[row] as AnimationPlayerComponent, model, deltaTime);
}
}
_placeSockets();
}