Refactored actor variation system, and added support for entity-level selections (controlled by the current animation).

Avoided tooltip error message.
Avoided noisy warnings when textures fail to load.

This was SVN commit r3653.
This commit is contained in:
Ykkrosh
2006-03-17 03:59:49 +00:00
parent 6eda8c2209
commit d3f57744d9
27 changed files with 499 additions and 437 deletions
+3 -2
View File
@@ -70,7 +70,8 @@ CSkeletonAnimDef* CSkeletonAnimDef::Load(const char* filename)
// unpack the data
CSkeletonAnimDef* anim=new CSkeletonAnimDef;
try {
unpacker.UnpackString(anim->m_Name);
CStr name; // unused - just here to maintain compatibility with the animation files
unpacker.UnpackString(name);
unpacker.UnpackRaw(&anim->m_FrameTime,sizeof(anim->m_FrameTime));
unpacker.UnpackRaw(&anim->m_NumKeys,sizeof(anim->m_NumKeys));
unpacker.UnpackRaw(&anim->m_NumFrames,sizeof(anim->m_NumFrames));
@@ -91,7 +92,7 @@ void CSkeletonAnimDef::Save(const char* filename,const CSkeletonAnimDef* anim)
CFilePacker packer(FILE_VERSION, "PSSA");
// pack up all the data
packer.PackString(CStr(anim->m_Name));
packer.PackString("");
packer.PackRaw(&anim->m_FrameTime,sizeof(anim->m_FrameTime));
packer.PackRaw(&anim->m_NumKeys,sizeof(anim->m_NumKeys));
packer.PackRaw(&anim->m_NumFrames,sizeof(anim->m_NumFrames));