lundi 1 février 2016

Game AdModule Architecture

UML Diagram I'm making this as a sample project in Unity. AdManager is a singleton Monobehaviour all other entities are C# files. I would like to discuss the architecture of this module. The diagram is not complete because the free version of the tool only supported this much. My basic requirements are simple Develop an Ad module that shows ads on multiple platforms catering multiple ad networks. Can be easily integrated into any project.

How I'm thinking of implementing it. Client only interacts with the AdManager which will be provided a PlatformAdController using AbstractFactory pattern. AdNetworkController will implement its corresponding AdNetwork. Then according to need multiple (Waterfall) AdNetworkController can be present in a PlatformAdController.

Am I going in the right direction?

What would be a good name for the Interface?

How to implement the lower(AdNetwork) layer i.e. Is there a need of interface/baseClass?

Aucun commentaire:

Enregistrer un commentaire