MCPcopy Create free account
hub / github.com/Voine/ChatWaifu_Mobile / StartRandomMotion

Method StartRandomMotion

Live2D/src/main/cpp/LAppModel.cpp:601–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601CubismMotionQueueEntryHandle LAppModel::StartRandomMotion(const csmChar* group, csmInt32 priority, ACubismMotion::FinishedMotionCallback onFinishedMotionHandler)
602{
603 if (_modelSetting->GetMotionCount(group) == 0)
604 {
605 return InvalidMotionQueueEntryHandleValue;
606 }
607
608 csmInt32 no = rand() % _modelSetting->GetMotionCount(group);
609
610 return StartMotion(group, no, priority, onFinishedMotionHandler);
611}
612
613void LAppModel::DoDraw()
614{

Callers 1

OnTapMethod · 0.80

Calls 1

GetMotionCountMethod · 0.45

Tested by

no test coverage detected