2023-06-11 13:08:08 +08:00
|
|
|
#include "ActionTimelineData.h"
|
2019-11-24 23:15:56 +08:00
|
|
|
|
|
|
|
NS_TIMELINE_BEGIN
|
|
|
|
|
|
|
|
// ActionTimelineData
|
|
|
|
ActionTimelineData* ActionTimelineData::create(int actionTag)
|
|
|
|
{
|
2021-12-25 10:04:45 +08:00
|
|
|
ActionTimelineData* ret = new ActionTimelineData();
|
2021-12-08 00:11:53 +08:00
|
|
|
if (ret->init(actionTag))
|
2019-11-24 23:15:56 +08:00
|
|
|
{
|
|
|
|
ret->autorelease();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-07-16 10:43:05 +08:00
|
|
|
AX_SAFE_DELETE(ret);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-12-25 10:04:45 +08:00
|
|
|
ActionTimelineData::ActionTimelineData() : _actionTag(0) {}
|
2019-11-24 23:15:56 +08:00
|
|
|
|
|
|
|
bool ActionTimelineData::init(int actionTag)
|
|
|
|
{
|
|
|
|
_actionTag = actionTag;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_TIMELINE_END
|