BVB Source Codes

CRYENGINE Show SelectionContext.h Source code

Return Download CRYENGINE: download SelectionContext.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __SelectionContext_h__
  4. #define __SelectionContext_h__
  5.  
  6. #pragma once
  7.  
  8. /*
  9.    This is the evaluation context for nodes.
  10.  */
  11.  
  12. #include "SelectionVariables.h"
  13. #include "SelectionTreeNode.h"
  14.  
  15. class SelectionContext
  16. {
  17. public:
  18.         SelectionContext(SelectionTreeNodes& nodes, const SelectionNodeID& currentNodeID,
  19.                          const SelectionVariables& variables)
  20.                 : m_nodes(nodes)
  21.                 , m_currentNodeID(currentNodeID)
  22.                 , m_variables(variables)
  23.         {
  24.         }
  25.  
  26.         const SelectionVariables& GetVariables() const
  27.         {
  28.                 return m_variables;
  29.         }
  30.  
  31.         SelectionTreeNode& GetNode(const SelectionNodeID& nodeID) const
  32.         {
  33.                 assert(nodeID > 0 && nodeID <= m_nodes.size());
  34.                 return m_nodes[nodeID - 1];
  35.         }
  36.  
  37.         const SelectionNodeID& GetCurrentNodeID() const
  38.         {
  39.                 return m_currentNodeID;
  40.         }
  41.  
  42. private:
  43.         SelectionTreeNodes&       m_nodes;
  44.         SelectionNodeID           m_currentNodeID;
  45.  
  46.         const SelectionVariables& m_variables;
  47. };
  48.  
  49. #endif
  50.  
downloadSelectionContext.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