save code
This commit is contained in:
+7
-1
@@ -28,6 +28,12 @@ struct Motion {
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE(Motion, name, frames)
|
||||
};
|
||||
|
||||
struct MotionList
|
||||
{
|
||||
vector<Motion> motions;
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE(MotionList, motions)
|
||||
};
|
||||
|
||||
struct InitArg
|
||||
{
|
||||
int action_fps;
|
||||
@@ -152,7 +158,7 @@ public:
|
||||
Callback _callback_loadfinish;
|
||||
AnimationFinishedCallback _animationFinishedCallback;
|
||||
bool _animationLoop = true;
|
||||
string preLoadMotionList(const vector<string>& motions, Callback callback);
|
||||
string preLoadMotionList(string motion_list_str, Callback callback);
|
||||
vector<Motion>_preLoadMotions;
|
||||
vector<Motion>_curMotions;
|
||||
void changeMotionList(AnimationFinishedCallback callback, bool loop);
|
||||
|
||||
Reference in New Issue
Block a user