BVB Source Codes

CRYENGINE Show FlashUIEventNodes.h Source code

Return Download CRYENGINE: download FlashUIEventNodes.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // -------------------------------------------------------------------------
  4. //  File name:   FlashUIEventNodes.h
  5. //  Version:     v1.00
  6. //  Created:     10/9/2010 by Paul Reindell.
  7. //  Description:
  8. // -------------------------------------------------------------------------
  9. //  History:
  10. //
  11. ////////////////////////////////////////////////////////////////////////////
  12. #ifndef __FlashUIEventNodes_H__
  13. #define __FlashUIEventNodes_H__
  14.  
  15. #include "FlashUIBaseNode.h"
  16.  
  17. class CFlashUIEventSystemFunctionNode
  18.         : public CFlashUIBaseNodeDynPorts
  19. {
  20. public:
  21.         CFlashUIEventSystemFunctionNode(IUIEventSystem* pSystem, string sCategory, const SUIEventDesc* pEventDesc);
  22.         virtual ~CFlashUIEventSystemFunctionNode();
  23.  
  24.         virtual IFlowNodePtr Clone(SActivationInfo* pActInfo);
  25.         virtual void         GetConfiguration(SFlowNodeConfig& config);
  26.         virtual void         ProcessEvent(EFlowEvent event, SActivationInfo* pActInfo);
  27.  
  28. private:
  29.         enum EInputs
  30.         {
  31.                 eI_Send = 0,
  32.         };
  33.  
  34.         enum EOutputs
  35.         {
  36.                 eO_OnEvent = 0,
  37.         };
  38.  
  39.         IUIEventSystem*                m_pSystem;
  40.         SUIEventDesc                   m_eventDesc;
  41.         uint                           m_iEventId;
  42.         std::vector<SInputPortConfig>  m_inPorts;
  43.         std::vector<SOutputPortConfig> m_outPorts;
  44. };
  45.  
  46. // --------------------------------------------------------------
  47. class CFlashUIEventSystemEventNode
  48.         : public CFlashUIBaseNodeDynPorts
  49.           , public IUIEventListener
  50. {
  51. public:
  52.         CFlashUIEventSystemEventNode(IUIEventSystem* pSystem, string sCategory, const SUIEventDesc* pEventDesc);
  53.         virtual ~CFlashUIEventSystemEventNode();
  54.  
  55.         virtual IFlowNodePtr    Clone(SActivationInfo* pActInfo);
  56.         virtual void            GetConfiguration(SFlowNodeConfig& config);
  57.         virtual void            ProcessEvent(EFlowEvent event, SActivationInfo* pActInfo);
  58.  
  59.         virtual SUIArgumentsRet OnEvent(const SUIEvent& event);
  60.         virtual void            OnEventSystemDestroyed(IUIEventSystem* pEventSystem) { m_pSystem = NULL; }
  61.  
  62. private:
  63.         void FlushNextEvent(SActivationInfo* pActInfo);
  64.  
  65. private:
  66.         enum EInputs
  67.         {
  68.                 eI_CheckPort = 0,
  69.                 eI_CheckValue,
  70.         };
  71.  
  72.         enum EOutputs
  73.         {
  74.                 eO_OnEvent = 0,
  75.         };
  76.  
  77.         IUIEventSystem*                m_pSystem;
  78.         SUIEventDesc                   m_eventDesc;
  79.         uint                           m_iEventId;
  80.         std::vector<SInputPortConfig>  m_inPorts;
  81.         std::vector<SOutputPortConfig> m_outPorts;
  82.  
  83.         typedef CUIStack<SUIArguments> TEventStack;
  84.         TEventStack m_events;
  85. };
  86.  
  87. #endif //#ifndef __FlashUIEventNodes_H__
  88.  
downloadFlashUIEventNodes.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