johntube
started a topic on Fri, 03 July 2015 at 9:58 PM
IMO, in any async. API, callbacks should include some piece of data to give idea about the respective corresponding request.
For instance : GetUserDataResult should include the PlayFabId of the User in question.
Maybe PlayFab SDKs were built around the idea that all objects should have their own delegates to treat their own callbacks. What about the easy dirty way of handling callbacks of multiple requests in a single central calls aka Manager / Handler / Controller generally implemented as Singletons.
I know this is not a best practice and maybe against OOP's GRASP or SOLID or whatever but we just want to make games.
Share your great idea, or help out by voting for other people's ideas.
No one has followed this idea yet.