Template Class DataEvent

Inheritance Relationships

Base Type

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