aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/AnimatorSystem.h
blob: 1e8cd7d66e98cff2dbdffc3466e2759d394fb0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "System.h"

namespace crepe {

/**
 * \brief The AnimatorSystem is responsible for managing and updating all Animator components.
 *
 * This system is responsible for controlling the behavior of the animations for all entities
 * that have the Animator component attached. It updates the animations by controlling their
 * frame changes, looping behavior, and overall animation state.
 */
class AnimatorSystem : public System {

public:
	using System::System;
	/**
	 * \brief Updates the Animator components.
	 *
	 * This method is called to update the state of all
	 * Animator components, moving the animations forward and managing their behavior (e.g.,
	 * looping).
	 */
	void update() override;

};

} // namespace crepe