The AgentViewModel class is heavily bloated. The updateObjects function is bloated. We have multiple fragments controlling in-game operations, some in common with each other, so the view model has been built to try and accommodate all of them and update everything all at once. This is not an optimal architecture. Devise an architecture that improves separation of concerns while still keeping functionality available to the views that need it.
The
AgentViewModelclass is heavily bloated. TheupdateObjectsfunction is bloated. We have multiple fragments controlling in-game operations, some in common with each other, so the view model has been built to try and accommodate all of them and update everything all at once. This is not an optimal architecture. Devise an architecture that improves separation of concerns while still keeping functionality available to the views that need it.