| 599 | } |
| 600 | |
| 601 | CubismMotionQueueEntryHandle 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 | |
| 613 | void LAppModel::DoDraw() |
| 614 | { |