BVB Source Codes

CRYENGINE Show FlowVehicleAttachment.h Source code

Return Download CRYENGINE: download FlowVehicleAttachment.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: Implements a flow node to handle vehicle Attachments
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 12:12:2005: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __FLOWVEHICLEATTACHMENT_H__
  15. #define __FLOWVEHICLEATTACHMENT_H__
  16.  
  17. #include "FlowVehicleBase.h"
  18.  
  19. class CFlowVehicleAttachment
  20.         : public CFlowVehicleBase
  21. {
  22. public:
  23.  
  24.         CFlowVehicleAttachment(SActivationInfo* pActivationInfo) { Init(pActivationInfo); }
  25.         ~CFlowVehicleAttachment() { Delete(); }
  26.  
  27.         // CFlowBaseNode
  28.         virtual void         Init(SActivationInfo* pActivationInfo);
  29.         virtual IFlowNodePtr Clone(SActivationInfo* pActivationInfo);
  30.         virtual void         GetConfiguration(SFlowNodeConfig& nodeConfig);
  31.         virtual void         ProcessEvent(EFlowEvent flowEvent, SActivationInfo* pActivationInfo);
  32.         virtual void         Serialize(SActivationInfo* pActivationInfo, TSerialize ser);
  33.         // ~CFlowBaseNode
  34.  
  35.         // IVehicleEventListener
  36.         virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params);
  37.         // ~IVehicleEventListener
  38.  
  39.         virtual void GetMemoryUsage(ICrySizer* s) const
  40.         {
  41.                 s->Add(*this);
  42.         }
  43.  
  44. protected:
  45.  
  46.         enum EInputs
  47.         {
  48.                 IN_ATTACHMENT,
  49.                 IN_ENTITYID,
  50.                 IN_ATTACH,
  51.                 IN_DETACH
  52.         };
  53.  
  54.         enum EOutputs
  55.         {
  56.         };
  57.  
  58.         void Attach(SActivationInfo* pActInfo, bool attach);
  59.  
  60.         EntityId m_attachedId;
  61.  
  62. };
  63.  
  64. #endif
  65.  
downloadFlowVehicleAttachment.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