保存代码
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user