Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1005 B

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef BONELIST_H
  7. #define BONELIST_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "studio.h"
  12. class CBoneList
  13. {
  14. public:
  15. CBoneList();
  16. void Release();
  17. static CBoneList *Alloc();
  18. unsigned int GetWriteSize() const
  19. {
  20. return 2 + m_nBones * ( sizeof( Vector ) + sizeof( Quaternion ) );
  21. }
  22. // The order of these data members must be maintained in order for the server
  23. // demo system. ServerDemoPacket_BaseAnimating::GetSize() depends on this.
  24. private:
  25. bool m_bShouldDelete : 1;
  26. public:
  27. uint16 m_nBones : 15;
  28. Vector m_vecPos[ MAXSTUDIOBONES ];
  29. Quaternion m_quatRot[ MAXSTUDIOBONES ];
  30. };
  31. class CFlexList
  32. {
  33. public:
  34. CFlexList();
  35. void Release();
  36. static CFlexList *Alloc();
  37. public:
  38. int m_nNumFlexes;
  39. float m_flexWeights[ MAXSTUDIOFLEXCTRL ];
  40. private:
  41. bool m_bShouldDelete;
  42. };
  43. #endif // BONELIST_H