BVB Source Codes

CRYENGINE Show SelectionSignalVariables.h Source code

Return Download CRYENGINE: download SelectionSignalVariables.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __SelectionSignalVariables_h__
  4. #define __SelectionSignalVariables_h__
  5.  
  6. #pragma once
  7.  
  8. /*
  9.    A simple mechanism to flip variable values based on signal fire and conditions.
  10.    A signal is mapped to an expression which will evaluate to the value of the variable,
  11.    shall the signal be fired.
  12.  */
  13.  
  14. #include "BlockyXml.h"
  15. #include "SelectionVariables.h"
  16. #include "SelectionCondition.h"
  17.  
  18. class SelectionSignalVariables
  19. {
  20. public:
  21.         bool LoadFromXML(const BlockyXmlBlocks::Ptr& blocks, const SelectionVariableDeclarations& variableDecls,
  22.                          const XmlNodeRef& rootNode, const char* scopeName, const char* fileName);
  23.  
  24.         bool ProcessSignal(const char* signalName, uint32 signalCRC, SelectionVariables& variables) const;
  25.  
  26. private:
  27.         struct SignalVariable
  28.         {
  29.                 SelectionCondition  valueExpr;
  30.                 SelectionVariableID variableID;
  31.         };
  32.  
  33.         typedef std::multimap<uint32, SignalVariable> SignalVariables;
  34.         SignalVariables m_signalVariables;
  35. };
  36.  
  37. #endif
  38.  
downloadSelectionSignalVariables.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