BVB Source Codes

CRYENGINE Show GenericRecordingListener.h Source code

Return Download CRYENGINE: download GenericRecordingListener.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description:  network breakability: recording of generic breaking events
  8.    -------------------------------------------------------------------------
  9.    History:
  10.    - 22/01/2007   10:34 : Created by Craig Tiller
  11. *************************************************************************/
  12. #ifndef __GENERICRECORDINGLISTENER_H__
  13. #define __GENERICRECORDINGLISTENER_H__
  14.  
  15. #pragma once
  16.  
  17. #include "IBreakReplicatorListener.h"
  18.  
  19. class CGenericRecordingListener : public IBreakReplicatorListener
  20. {
  21. public:
  22.         CGenericRecordingListener();
  23.  
  24.         bool AcceptUpdateMesh(const EventPhysUpdateMesh* pEvent);
  25.         bool AcceptCreateEntityPart(const EventPhysCreateEntityPart* pEvent);
  26.         bool AcceptRemoveEntityParts(const EventPhysRemoveEntityParts* pEvent);
  27.         bool AcceptJointBroken(const EventPhysJointBroken*);
  28.  
  29.         void OnSpawn(IEntity* pEntity, SEntitySpawnParams& params);
  30.         void OnRemove(IEntity* pEntity);
  31.         void EndEvent(INetContext* pCtx);
  32.  
  33.         void OnPostStep() {}
  34.  
  35.         bool AttemptAbsorb(const IProceduralBreakTypePtr& pBT)
  36.         {
  37.                 return false;
  38.         }
  39.  
  40.         virtual void OnStartFrame()
  41.         {
  42.         }
  43.  
  44.         virtual bool OnEndFrame()
  45.         {
  46.                 CRY_ASSERT(false);
  47.                 return false;
  48.         }
  49.  
  50.         virtual void OnTimeout()
  51.         {
  52.         }
  53.  
  54.         const char* GetName()
  55.         {
  56.                 return "GenericRecordingListener";
  57.         }
  58.  
  59. private:
  60.         const SNetMessageDef*    m_pDef;
  61.         IBreakDescriptionInfoPtr m_pInfo;
  62.         DynArray<EntityId>       m_spawned;
  63. };
  64.  
  65. #endif
  66.  
downloadGenericRecordingListener.h 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