mirror of https://github.com/axmolengine/axmol.git
33 lines
465 B
C++
33 lines
465 B
C++
//
|
|
// AppEvent.cpp
|
|
// Simulator
|
|
//
|
|
//
|
|
|
|
#include "AppEvent.h"
|
|
|
|
AppEvent::AppEvent(const std::string& eventName, int type)
|
|
: EventCustom(eventName)
|
|
, _eventName(eventName)
|
|
{
|
|
setEventType(type);
|
|
}
|
|
|
|
void AppEvent::setEventType(int type)
|
|
{
|
|
_eventType = type;
|
|
}
|
|
int AppEvent::getEventType()
|
|
{
|
|
return _eventType;
|
|
}
|
|
|
|
void AppEvent::setDataString(std::string data)
|
|
{
|
|
_dataString = data;
|
|
}
|
|
|
|
std::string AppEvent::getDataString()
|
|
{
|
|
return _dataString;
|
|
} |