From 316df0931c66e43e69f21bda28c77b9bdb1e8bca Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 13 Jun 2017 21:01:08 -0400 Subject: component reorginization; entity flashes --- include/components/flash.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/components/flash.hpp (limited to 'include/components/flash.hpp') diff --git a/include/components/flash.hpp b/include/components/flash.hpp new file mode 100644 index 0000000..e53c41c --- /dev/null +++ b/include/components/flash.hpp @@ -0,0 +1,15 @@ +#ifndef COMPONENTS_FLASH_HPP_ +#define COMPONENTS_FLASH_HPP_ + +#include + +struct Flash +{ + Flash(Color c, int _ms = 500) + : color(c), ms(_ms), totalMs(_ms) {} + + Color color; + int ms, totalMs; +}; + +#endif // COMPONENTS_FLASH_HPP_ -- cgit v1.2.3