# AnimationClient

# 说明

AnimationClient是一个继承自GameObject的类,用于管理游戏中的动画对象。

# 如何使用

auto animations = ObjectManager::GetAllAnimation();
for (auto anim : animations) {
    AIBaseClient* master = anim->Master();
    // 处理动画对象...
}

# Master

AIBaseClient* Master()

获取与此动画关联的主要单位。

AnimationClient* animation = animations[0];
AIBaseClient* owner = animation->Master();
if (owner != nullptr) {
    // 使用动画的主人单位...
}

# ObjectManager.GetAllAnimation

std::vector<AnimationClient*> const& ObjectManager::GetAllAnimation()

获取当前游戏中所有的动画对象。

auto animations = ObjectManager::GetAllAnimation();
for (auto animation : animations) {
    // 处理每个动画...
}