Peoplemon  0.1.0
Peoplemon 3 game source documentation
Event.cpp
Go to the documentation of this file.
1 #include <Core/Maps/Event.hpp>
2 
3 namespace core
4 {
5 namespace map
6 {
8 : trigger(Trigger::OnEnter) {}
9 
10 Event::Event(const std::string& s, const sf::Vector2i& pos, const sf::Vector2i& sz, Trigger t)
11 : trigger(t)
12 , position(pos)
13 , areaSize(sz)
14 , script(s) {}
15 
16 } // namespace map
17 } // namespace core
Core classes and functionality for both the editor and game.
Trigger
What action triggers the event.
Definition: Event.hpp:21
Event()
Creates an empty event.
Definition: Event.cpp:7