aboutsummaryrefslogtreecommitdiff
path: root/scene/animation/tween.h
diff options
context:
space:
mode:
authorsanikoyes2015-05-05 11:12:17 +0800
committersanikoyes2015-05-05 11:12:17 +0800
commit6d0914dfc5d439701d93e42da26d4be95f6eda80 (patch)
tree00678af0892b528737373983f1cd3feb3fafe9d1 /scene/animation/tween.h
parentdce8a6c251d4da24d70cab6033753895716bc998 (diff)
downloadgodot-6d0914dfc5d439701d93e42da26d4be95f6eda80.tar.gz
godot-6d0914dfc5d439701d93e42da26d4be95f6eda80.tar.zst
godot-6d0914dfc5d439701d93e42da26d4be95f6eda80.zip
Diffstat (limited to 'scene/animation/tween.h')
-rw-r--r--scene/animation/tween.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/scene/animation/tween.h b/scene/animation/tween.h
index 76402bcd7..d504c63d8 100644
--- a/scene/animation/tween.h
+++ b/scene/animation/tween.h
@@ -110,6 +110,27 @@ private:
List<InterpolateData> interpolates;
+ struct PendingCommand {
+ StringName key;
+ int args;
+ Variant arg[10];
+ };
+ List<PendingCommand> pending_commands;
+
+ void _add_pending_command(StringName p_key
+ ,const Variant& p_arg1=Variant()
+ ,const Variant& p_arg2=Variant()
+ ,const Variant& p_arg3=Variant()
+ ,const Variant& p_arg4=Variant()
+ ,const Variant& p_arg5=Variant()
+ ,const Variant& p_arg6=Variant()
+ ,const Variant& p_arg7=Variant()
+ ,const Variant& p_arg8=Variant()
+ ,const Variant& p_arg9=Variant()
+ ,const Variant& p_arg10=Variant()
+ );
+ void _process_pending_commands();
+
typedef real_t (*interpolater)(real_t t, real_t b, real_t c, real_t d);
static interpolater interpolaters[TRANS_COUNT][EASE_COUNT];