Frame* InnerActionFrame::clone() { InnerActionFrame* frame = InnerActionFrame::create(); frame->setInnerActionType(_innerActionType); frame->setStartFrameIndex(_startFrameIndex); frame->cloneProperty(this); return frame; }
Frame* ActionTimelineCache::loadInnerActionFrame(const rapidjson::Value& json) { InnerActionFrame* frame = InnerActionFrame::create(); InnerActionType type = (InnerActionType)DICTOOL->getIntValue_json(json, INNER_ACTION); int startFrame = DICTOOL->getIntValue_json(json, START_FRAME); frame->setInnerActionType(type); frame->setStartFrameIndex(startFrame); return frame; }
Frame* InnerActionFrame::clone() { InnerActionFrame* frame = InnerActionFrame::create(); frame->setInnerActionType(_innerActionType); frame->setSingleFrameIndex(_singleFrameIndex); if(_enterWithName) { frame->setEnterWithName(true); frame->setAnimationName(_animationName); } else { frame->setStartFrameIndex(_startFrameIndex); frame->setEndFrameIndex(_endFrameIndex); } frame->cloneProperty(this); return frame; }