5#include <hpp/source_location.hpp>
15#ifdef SEQ_INSPECTOR_ENABLE
26#ifdef SEQ_INSPECTOR_ENABLE
31 action.
info->progress = float(action.
info->elapsed.count()) / float(action.
info->duration.count());
38template<
typename Object,
typename T>
40 const std::string& updater_type,
45#ifdef SEQ_INSPECTOR_ENABLE
46 action.
info = std::make_shared<seq_inspect_info>();
49 action.
info->updater_type = updater_type;
52 action.
info->ease_func = ease_func;
Provides utilities for inspecting and converting sequence-related types to strings.
void update_begin_value(seq_action &action, const T &begin)
void add_info(seq_action &action, const std::string &updater_type, const Object &object, const T &end_value, const ease_t &ease_func)
void add_repeat_info(seq_action &repeat_action, const seq_action &action, size_t times)
void add_together_info(seq_action &action, const std::vector< seq_action > &actions)
auto to_str(const T &t) -> std::string
Converts a value to a string using ADL (Argument-Dependent Lookup).
void update_action_state(seq_action &action, state_t state)
void add_location(seq_action &action, const hpp::source_location &location)
void add_sequence_info(seq_action &action, const std::vector< seq_action > &actions)
auto type_to_str(const T &t) -> std::string
Gets the type of a value as a string using ADL.
void update_action_status(seq_action &action)
void add_delay_info(seq_action &action)
Provides a sequence-based action management system for controlling and scheduling actions.
state_t
Represents the state of a sequence action.
std::function< float(float)> ease_t
Represents an easing function for interpolation.
Represents an action within the sequence management system. Contains lifecycle events and management ...
auto get_id() const -> seq_id_t
Gets the unique ID of the action.
seq_inspect_info::ptr info
Gets a pointer to the action's inspection information.
static auto get_duration(const seq_action &self) -> duration_t
Gets the total duration of a given action.
static auto get_speed_multiplier(const seq_action &action) -> float
Gets the speed multiplier of a given action.
static auto is_stop_when_finished_requested(const seq_action &action) -> bool
Checks if the action is requested to stop when finished.
static auto get_elapsed(const seq_action &self) -> duration_t
Gets the elapsed time of a given action.