diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-04-27 21:28:33 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-04-27 21:28:33 -0400 |
commit | 00de7a4b0aa48c3cb42c45e0f203902ca034b94c (patch) | |
tree | e364575a000af4a9c65b2e43f5ec565bb2df4bf8 /include | |
parent | ef1ea79375ce865d78fb7da4244aee65d25c04b3 (diff) |
important textls
Diffstat (limited to 'include')
-rw-r--r-- | include/components.hpp | 16 | ||||
-rw-r--r-- | include/ui.hpp | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/components.hpp b/include/components.hpp index dafb859..87d4293 100644 --- a/include/components.hpp +++ b/include/components.hpp @@ -623,6 +623,22 @@ struct Hit : public Component { } }; +struct Trigger : public Component { + Trigger(const std::string& t) + : text(t) {} + Trigger(XMLElement* imp, XMLElement* def) { + fromXML(imp, def); + } + + std::string text; + + void fromXML(XMLElement* imp, XMLElement* def) final { + (void)imp; + (void)def; + text = "You got me!"; + } +}; + /** * SYSTEMS */ diff --git a/include/ui.hpp b/include/ui.hpp index 456c88a..3f0a67f 100644 --- a/include/ui.hpp +++ b/include/ui.hpp @@ -126,6 +126,8 @@ namespace ui { */ void takeScreenshot(GLubyte *pixels); + + bool handleGLEvent(SDL_Event& e); } #endif // UI_HPP_ |