保存代码

This commit is contained in:
xsl
2025-12-16 22:15:42 +08:00
parent 4cf1990b16
commit 84cc693593
6 changed files with 164 additions and 25 deletions
+4 -1
View File
@@ -35,6 +35,7 @@ struct PushConstants {
};
using Callback = std::function<void(const std::string&)>;
using AnimationFinishedCallback = std::function<void()>;
class FaceApp :public Application
{
@@ -139,8 +140,10 @@ private:
public:
Callback _callback;
AnimationFinishedCallback _animationFinishedCallback;
bool _animationLoop = true;
string preReadyMotion(const std::string& json, Callback callback);
void changeMotion(const string motion_type);
void changeMotion(const string motion_type, AnimationFinishedCallback callback, bool loop);
//void changeMotion(Motion& motion);
InitArg _initArg;
//Motion _curMotion;