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.

52 lines
1.5 KiB

  1. //====== Copyright � 1996-2008, Valve Corporation, All rights reserved. =====//
  2. //
  3. // A list of DmeSequences's
  4. //
  5. //===========================================================================//
  6. #ifndef DMESEQUENCELIST_H
  7. #define DMESEQUENCELIST_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmattributevar.h"
  12. #include "mdlobjects/dmemdllist.h"
  13. #include "tier1/utlvector.h"
  14. //-----------------------------------------------------------------------------
  15. // Forward Declarations
  16. //-----------------------------------------------------------------------------
  17. class CDmeSequenceBase;
  18. class CDmeIkChain;
  19. //-----------------------------------------------------------------------------
  20. // A class representing a list of sequences
  21. //-----------------------------------------------------------------------------
  22. class CDmeSequenceList : public CDmeMdlList
  23. {
  24. DEFINE_ELEMENT( CDmeSequenceList, CDmeMdlList );
  25. public:
  26. virtual CDmAttribute *GetListAttr() { return m_Sequences.GetAttribute(); }
  27. CDmaElementArray< CDmeSequenceBase> m_Sequences;
  28. CDmaElementArray< CDmeIkChain > m_eIkChainList;
  29. // Returns a sorted of the sequences in the m_Sequences attribute in order of priority
  30. // Sequences that are referred to come before the sequences that refer to them
  31. void GetSortedSequenceList( CUtlVector< CDmeSequenceBase * > &sortedSequenceList ) const;
  32. // Sorts the sequences in the m_Sequences attribute in order of priority
  33. // Sequences that are referred to come before the sequences that refer to them
  34. void SortSequences();
  35. };
  36. #endif // DMESEQUENCELIST_H