BVB Source Codes

CRYENGINE Show DialogLoaderMK2.h Source code

Return Download CRYENGINE: download DialogLoaderMK2.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:   DialogLoaderMK2.h
  5. //  Version:     v1.00
  6. //  Created:     07/07/2006 by AlexL
  7. //  Compilers:   Visual Studio.NET
  8. //  Description: Dialog Loader
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13.  
  14. #ifndef __DIALOGLOADERMK2_H__
  15. #define __DIALOGLOADERMK2_H__
  16.  
  17. #pragma once
  18.  
  19. #include "DialogScript.h"
  20.  
  21. class CDialogSystem;
  22.  
  23. class CDialogLoaderMK2
  24. {
  25. public:
  26.         CDialogLoaderMK2(CDialogSystem* pDS);
  27.         virtual ~CDialogLoaderMK2();
  28.  
  29.         // Loads all DialogScripts below a given path
  30.         bool LoadScriptsFromPath(const string& path, TDialogScriptMap& outScripts, const char* levelName);
  31.  
  32.         // Loads a single DialogScript
  33.         bool LoadScript(const string& stripPath, const string& fileName, TDialogScriptMap& outScripts);
  34.  
  35. protected:
  36.         void InternalLoadFromPath(const string& stripPath, const string& path, TDialogScriptMap& outScriptMap, int& numLoaded, const char* levelName);
  37.  
  38.         // get actor from string [1-based]
  39.         bool GetActor(const char* actor, int& outID);
  40.         bool GetLookAtActor(const char* actor, int& outID, bool& outSticky);
  41.         bool ProcessScript(CDialogScript* pScript, const XmlNodeRef& rootNode);
  42.         bool ReadLine(const XmlNodeRef& lineNode, CDialogScript::SScriptLine& outLine, const char* scriptID, int lineNumber);
  43.         void ResetLine(CDialogScript::SScriptLine& scriptLine);
  44.  
  45. protected:
  46.  
  47.         CDialogSystem* m_pDS;
  48. };
  49.  
  50. #endif
  51.  
downloadDialogLoaderMK2.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