BVB Source Codes

CRYENGINE Show SelectionTranslator.h Source code

Return Download CRYENGINE: download SelectionTranslator.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __SelectionTranslator_h__
  4. #define __SelectionTranslator_h__
  5.  
  6. #pragma once
  7.  
  8. /*
  9.    A Leaf node name translator. Any leafs with a matching name will be translated.
  10.    It supports disambiguation, if needed, with parent-qualified leaf names with : as separator.
  11.  
  12.    Example: Root:Combat:Shoot
  13.  */
  14.  
  15. #include "BlockyXml.h"
  16. #include "SelectionTree.h"
  17.  
  18. class SelectionTree;
  19. class SelectionTranslator
  20. {
  21. public:
  22.         bool LoadFromXML(const BlockyXmlBlocks::Ptr& blocks, const SelectionTree& selectionTree, const XmlNodeRef& rootNode,
  23.                          const char* scopeName, const char* fileName);
  24.  
  25.         const char* GetTranslation(const SelectionNodeID& nodeID) const;
  26. private:
  27.         struct QualifiedTranslation
  28.         {
  29.                 std::vector<string> ancestors;
  30.                 string              target;
  31.         };
  32.  
  33.         typedef std::map<SelectionNodeID, string> Translations;
  34.         Translations m_translations;
  35. };
  36.  
  37. #endif
  38.  
downloadSelectionTranslator.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