BVB Source Codes

CRYENGINE Show VehicleModificationParams.h Source code

Return Download CRYENGINE: download VehicleModificationParams.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __Vehicle_Modification_Params__h__
  4. #define __Vehicle_Modification_Params__h__
  5.  
  6. class CVehicleModificationParams
  7. {
  8. public:
  9.         CVehicleModificationParams();
  10.         CVehicleModificationParams(XmlNodeRef xmlVehicleData, const char* modificationName);
  11.         virtual ~CVehicleModificationParams();
  12.  
  13.         template<typename T>
  14.         void ApplyModification(const char* nodeId, const char* attrName, T& attrValueOut) const
  15.         {
  16.                 XmlNodeRef modificationNode = GetModificationNode(nodeId, attrName);
  17.                 if (modificationNode)
  18.                 {
  19.                         modificationNode->getAttr("value", attrValueOut);
  20.                 }
  21.         }
  22.  
  23. private:
  24.         void               InitModification(XmlNodeRef xmlModificationData);
  25.  
  26.         static XmlNodeRef  FindModificationNodeByName(const char* name, XmlNodeRef xmlModificationsGroup);
  27.  
  28.         void               InitModificationElem(XmlNodeRef xmlElem);
  29.  
  30.         virtual XmlNodeRef GetModificationNode(const char* nodeId, const char* attrName) const;
  31.  
  32. private:
  33.         struct Implementation;
  34.         Implementation* m_pImpl;
  35. };
  36.  
  37. #endif
  38.  
downloadVehicleModificationParams.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