BVB Source Codes

CRYENGINE Show ScriptBind_DialogSystem.h Source code

Return Download CRYENGINE: download ScriptBind_DialogSystem.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:   ScriptBind_DialogSystem.cpp
  5. //  Version:     v1.00
  6. //  Created:     02/08/2006 by AlexL
  7. //  Compilers:   Visual Studio.NET
  8. //  Description: Dialog System ScriptBinding
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13. #ifndef __SCRIPTBIND_DIALOGSYSTEM_H__
  14. #define __SCRIPTBIND_DIALOGSYSTEM_H__
  15.  
  16. #if _MSC_VER > 1000
  17.         #pragma once
  18. #endif
  19.  
  20. #include <CryScriptSystem/IScriptSystem.h>
  21. #include <CryScriptSystem/ScriptHelpers.h>
  22.  
  23. class CDialogSystem;
  24.  
  25. class CScriptBind_DialogSystem : public CScriptableBase
  26. {
  27. public:
  28.         CScriptBind_DialogSystem(ISystem* pSystem, CDialogSystem* pDS);
  29.         virtual ~CScriptBind_DialogSystem();
  30.  
  31.         void         Release() { delete this; };
  32.  
  33.         virtual void GetMemoryUsage(ICrySizer* pSizer) const
  34.         {
  35.                 pSizer->AddObject(this, sizeof(*this));
  36.         }
  37. private:
  38.         void RegisterGlobals();
  39.         void RegisterMethods();
  40.  
  41.         int  CreateSession(IFunctionHandler* pH, const char* scriptID);
  42.         int  DeleteSession(IFunctionHandler* pH, int sessionID);
  43.         int  SetActor(IFunctionHandler* pH, int sessionID, int actorID, ScriptHandle entity);
  44.         int  Play(IFunctionHandler* pH, int sessionID);
  45.         int  Stop(IFunctionHandler* pH, int sessionID);
  46.         int  IsEntityInDialog(IFunctionHandler* pH, ScriptHandle entity);
  47.  
  48. private:
  49.         ISystem*       m_pSystem;
  50.         IEntitySystem* m_pEntitySystem;
  51.         CDialogSystem* m_pDS;
  52. };
  53.  
  54. #endif //__SCRIPTBIND_DIALOGSYSTEM_H__
  55.  
downloadScriptBind_DialogSystem.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