blob: fe59c5da7f5aee265fba44795e4d0d90126b41e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "bootstrap.hpp"
// Interfaces
#include "interfaces/enemy.hpp"
#include "interfaces/hero.hpp"
#include "interfaces/weapon.hpp"
// Concretes
#include "enemy.hpp"
#include "hero.hpp"
#include "sword.hpp"
yacppdic::Container bootstrap()
{
auto container = yacppdic::Container();
container.bind<IHero>().to<Hero>();
container.bind<IWeapon>().to<Sword>();
container.bind<IEnemy>().to<Enemy>();
return container;
}
|