Frame* ActionTimelineCache::loadAnchorPointFrameWithFlatBuffers(const flatbuffers::ScaleFrame *flatbuffers)
 {
     AnchorPointFrame* frame = AnchorPointFrame::create();
     
     auto f_scale = flatbuffers->scale();
     Vec2 scale(f_scale->scaleX(), f_scale->scaleY());
     frame->setAnchorPoint(scale);
     
     int frameIndex = flatbuffers->frameIndex();
     frame->setFrameIndex(frameIndex);
     
     bool tween = flatbuffers->tween() != 0;
     frame->setTween(tween);
     
     return frame;
 }
Frame* ActionTimelineCache::loadAnchorPointFrameWithFlatBuffers(const flatbuffers::TimeLinePointFrame *flatbuffers)
{
    AnchorPointFrame* frame = AnchorPointFrame::create();
    
    auto f_anchorPoint = flatbuffers->postion();
    Vec2 anchorPoint(f_anchorPoint->x(), f_anchorPoint->y());
    frame->setAnchorPoint(anchorPoint);
    
    int frameIndex = flatbuffers->frameIndex();
    frame->setFrameIndex(frameIndex);
    
    bool tween = flatbuffers->tween();
    frame->setTween(tween);
    
    return frame;
}