BVB Source Codes

CRYENGINE Show ProceduralClipEvent.cpp Source code

Return Download CRYENGINE: download ProceduralClipEvent.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. //
  4. ////////////////////////////////////////////////////////////////////////////
  5.  
  6. #include "StdAfx.h"
  7.  
  8. #include "ICryMannequin.h"
  9.  
  10. #include <Mannequin/Serialization.h>
  11.  
  12. struct SProceduralClipEventParams
  13.         : public IProceduralParams
  14. {
  15.         virtual void Serialize(Serialization::IArchive& ar) override
  16.         {
  17.                 ar(eventName, "EventName", "Event Name");
  18.         }
  19.  
  20.         virtual void GetExtraDebugInfo(StringWrapper& extraInfoOut) const override
  21.         {
  22.                 extraInfoOut = eventName.c_str();
  23.         }
  24.  
  25.         SProcDataCRC eventName;
  26. };
  27.  
  28. class CProceduralClipEvent : public TProceduralClip<SProceduralClipEventParams>
  29. {
  30. public:
  31.         CProceduralClipEvent()
  32.         {
  33.         }
  34.  
  35.         virtual void OnEnter(float blendTime, float duration, const SProceduralClipEventParams& params)
  36.         {
  37.                 SendActionEvent(params.eventName.crc);
  38.         }
  39.  
  40.         virtual void OnExit(float blendTime)  {}
  41.  
  42.         virtual void Update(float timePassed) {}
  43.  
  44. };
  45.  
  46. REGISTER_PROCEDURAL_CLIP(CProceduralClipEvent, "ActionEvent");
  47.  
downloadProceduralClipEvent.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