Template Class DataEvent
Defined in File Event.hpp
Inheritance Relationships
Base Type
public Cacao::Event
(Class Event)
Class Documentation
-
template<typename T>
class DataEvent : public Cacao::Event An event that stores some data.
Public Functions
-
inline DataEvent(std::string eventType, T eventData)
Create a new data event.
- Parameters:
eventType – The type of event; see the page “Events” in the manual for a list of engine events and their data types
eventData – The data to store
-
inline T GetData() const
Get the stored data.
- Returns:
The data
-
inline DataEvent(std::string eventType, T eventData)