The new reference simplifies the access to PlayerProfileService instance in task implementation. Furthermore, creating new factories is easier, because the dependencies for the observers are automatically assigned via GameTimer.
By using a FactoryInitializationData class, the referenced data is exandable and can be changed in future more easily compared to the old structure with serialized fields in abstract game task.
The new reference simplifies the access to
PlayerProfileService
instance in task implementation. Furthermore, creating new factories is easier, because the dependencies for the observers are automatically assigned viaGameTimer
. By using aFactoryInitializationData
class, the referenced data is exandable and can be changed in future more easily compared to the old structure with serialized fields in abstract game task.