Closed michaelcontento closed 8 years ago
Currently the enabled
-flag is set in avalon::ads::Manager
and used for all "placements" -- which is good enough for the "remove all ads"-behaviour. But in this redesign it should be possible to control this flag on a placement level too. Example:
auto manager = avalon::ads::Manager();
manager.loadFile("ads.ini");
manager.get("mainmenu").enabled = false;
Another nice feature would be to bind a placement to a user defined function!
It should be based around the concept of placements. Something like:
Where
ads.ini
contains:[provider.$NAME]
[provider.$NAME.$PLATFORM]
[placement.$NAME]
type
is a required setting for a placementenabled
is a optional setting for a placement, defaults to1
/true
weight.$PROVIDER
0
[placement.$NAME.$PLATFORM]