- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSWeaponSystem.cpp
More file actions
Latest commit
29 lines (24 loc) · 744 Bytes
/
Copy pathSWeaponSystem.cpp
File metadata and controls
29 lines (24 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include"SWeaponSystem.h"
SWeaponSystem::SWeaponSystem()
{
//ctor
}
SWeaponSystem::~SWeaponSystem()
{
//dtor
}
voidSWeaponSystem::configure(entityx::ptr<EventManager> event_manager)
{
std::cout << "SWeaponSystem configure" << std::endl;
event_manager->subscribe<WeaponEvent>(*this);
}
voidSWeaponSystem::update(entityx::ptr<EntityManager> es, entityx::ptr<EventManager> events, double dt)
{
}
voidSWeaponSystem::receive(const WeaponEvent &weapon)
{
std::cout << "Player Weapon fired" << std::endl;
// entityx::Entity entity = weapon.entity;
// entityx::ptr<WeaponComponent> weaponcomp = entity.component<WeaponComponent>();
// entityx::ptr<PositionComponent> pos = entity.component<PositionComponent>();
}