BVB Source Codes

CRYENGINE Show AnimEventList.cpp Source code

Return Download CRYENGINE: download AnimEventList.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #include "stdafx.h"
  4. #include "AnimEventList.h"
  5.  
  6. CAnimEventList::CAnimEventList()
  7. {
  8. }
  9.  
  10. CAnimEventList::~CAnimEventList()
  11. {
  12. }
  13.  
  14. uint32 CAnimEventList::GetCount() const
  15. {
  16.         return m_animEvents.size();
  17. }
  18.  
  19. const CAnimEventData& CAnimEventList::GetByIndex(uint32 animEventIndex) const
  20. {
  21.         return m_animEvents[animEventIndex];
  22. }
  23.  
  24. CAnimEventData& CAnimEventList::GetByIndex(uint32 animEventIndex)
  25. {
  26.         return m_animEvents[animEventIndex];
  27. }
  28.  
  29. void CAnimEventList::Append(const CAnimEventData& animEvent)
  30. {
  31.         m_animEvents.push_back(animEvent);
  32. }
  33.  
  34. void CAnimEventList::Remove(uint32 animEventIndex)
  35. {
  36.         m_animEvents.erase(animEventIndex);
  37. }
  38.  
  39. void CAnimEventList::Clear()
  40. {
  41.         m_animEvents.clear();
  42. }
  43.  
  44. size_t CAnimEventList::GetAllocSize() const
  45. {
  46.         size_t allocSize = 0;
  47.         allocSize += m_animEvents.get_alloc_size();
  48.  
  49.         const uint32 animEventCount = m_animEvents.size();
  50.         for (uint32 i = 0; i < animEventCount; ++i)
  51.         {
  52.                 allocSize += m_animEvents[i].GetAllocSize();
  53.         }
  54.  
  55.         return allocSize;
  56. }
  57.  
  58. void CAnimEventList::GetMemoryUsage(ICrySizer* pSizer) const
  59. {
  60.         pSizer->AddObject(m_animEvents);
  61. }
  62.  
downloadAnimEventList.cpp Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top