BVB Source Codes

CRYENGINE Show FlowCustomActionNodes.h Source code

Return Download CRYENGINE: download FlowCustomActionNodes.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /********************************************************************
  4.    -------------------------------------------------------------------------
  5.    File name:   FlowCustomActionNodes.cpp
  6.    $Id$
  7.    Description: All nodes related to the Custom Action flow graphs
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 30:8:2011   15:24 : Created by Dean Claassen
  12.  
  13.  *********************************************************************/
  14.  
  15. #pragma once
  16.  
  17. #include <CryFlowGraph/IFlowBaseNode.h>
  18. #include <CryAction/ICustomActions.h>
  19.  
  20. // Forward declarations
  21. struct ICustomAction;
  22.  
  23. //////////////////////////////////////////////////////////////////////////
  24. // CustomAction:Control node.
  25. // This node is used to control a custom action from a specific instance
  26. //////////////////////////////////////////////////////////////////////////
  27. class CFlowNode_CustomActionControl : public CFlowBaseNode<eNCT_Instanced>, ICustomActionListener
  28. {
  29. public:
  30.         enum INPUTS
  31.         {
  32.                 EIP_Start = 0,
  33.                 EIP_Succeed,
  34.                 EIP_SucceedWait,
  35.                 EIP_SucceedWaitComplete,
  36.                 EIP_Abort,
  37.                 EIP_EndSuccess,
  38.                 EIP_EndFailure,
  39.         };
  40.  
  41.         enum OUTPUTS
  42.         {
  43.                 EOP_Started = 0,
  44.                 EOP_Succeeded,
  45.                 EOP_SucceededWait,
  46.                 EOP_SucceededWaitComplete,
  47.                 EOP_Aborted,
  48.                 EOP_EndedSuccess,
  49.                 EOP_EndedFailure,
  50.         };
  51.  
  52.         CFlowNode_CustomActionControl(SActivationInfo* pActInfo)
  53.         {
  54.         }
  55.  
  56.         ~CFlowNode_CustomActionControl();
  57.  
  58.         virtual void GetMemoryUsage(ICrySizer* s) const
  59.         {
  60.                 s->Add(*this);
  61.         }
  62.  
  63.         virtual IFlowNodePtr Clone(SActivationInfo* pActInfo) { return new CFlowNode_CustomActionControl(pActInfo); }
  64.  
  65.         void                 GetConfiguration(SFlowNodeConfig& config);
  66.         void                 ProcessEvent(EFlowEvent event, SActivationInfo* pActInfo);
  67.  
  68.         // ICustomActionListener
  69.         virtual void OnCustomActionEvent(ECustomActionEvent event, ICustomAction& customAction);
  70.         // ~ICustomActionListener
  71.  
  72. private:
  73.         SActivationInfo m_actInfo;
  74. };
  75.  
downloadFlowCustomActionNodes.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