# AnimationClient
# Description
AnimationClient is a class that inherits from GameObject, used for managing animation objects in the game.
# How to Use
auto animations = ObjectManager::GetAllAnimation();
for (auto anim : animations) {
AIBaseClient* master = anim->Master();
// Process animation objects...
}
# Master
AIBaseClient* Master()
Gets the main unit associated with this animation.
AnimationClient* animation = animations[0];
AIBaseClient* owner = animation->Master();
if (owner != nullptr) {
// Use the animation's owner unit...
}
# ObjectManager.GetAllAnimation
std::vector<AnimationClient*> const& ObjectManager::GetAllAnimation()
Gets all animation objects currently in the game.
auto animations = ObjectManager::GetAllAnimation();
for (auto animation : animations) {
// Process each animation...
}