实体
动画 CAnimManager
查看 Markdown动画块混合与关联
CAnimManager.h
动画块与混合。逻辑帧 / 任务侧用;渲染钩子里改要小心。
static CAnimBlock* GetAnimationBlock(char const* name);
static int GetAnimationBlockIndex(char const* name);
static int RegisterAnimBlock(char const* name);按名或 hash。
static CAnimBlendHierarchy* GetAnimation(char const* animName, CAnimBlock const* ifp);
static CAnimBlendHierarchy* GetAnimation(unsigned int hash, CAnimBlock const* ifp);AssocGroupId / AnimationId 见动画枚举。
static CAnimBlendAssociation* AddAnimation(RpClump* clump, int AssocGroupId, int AnimationId);
static CAnimBlendAssociation* AddAnimation(RpClump* clump, CAnimBlendHierarchy* pAnimBlendHier, int clumpAssocFlag);
static CAnimBlendAssociation* BlendAnimation(RpClump* clump, int AssocGroupId, int AnimationId, float clumpAssocBlendData);
static CAnimBlendAssociation* BlendAnimation(RpClump* clump, CAnimBlendHierarchy* pAnimBlendHier, int flags, float clumpAssocBlendData);static CAnimBlendAssociation* CreateAnimAssociation(int AssocGroupId, int AnimationId);
static CAnimBlendStaticAssociation* GetAnimAssociation(int AssocGroupId, int AnimationId);static void AddAnimBlockRef(int index);
static void RemoveAnimBlockRef(int index);
static int GetNumRefsToAnimBlock(int index);static CAnimBlock* ms_aAnimBlocks;
static CAnimBlendHierarchy* ms_aAnimations;
static int& ms_numAnimBlocks;加载 ifp 还涉及 LoadAnimFile / Streaming;复杂链查头文件与逆向笔记。
评论