BVB Source Codes

CRYENGINE Show ScriptBind_ActionMapManager.h Source code

Return Download CRYENGINE: download ScriptBind_ActionMapManager.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description: Script Bind for CActionMapManager
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 8:11:2004   16:48 : Created by M谩rcio Martins
  12.  
  13. *************************************************************************/
  14. #ifndef __SCRIPTBIND_ACTIONMAPMANAGER_H__
  15. #define __SCRIPTBIND_ACTIONMAPMANAGER_H__
  16.  
  17. #if _MSC_VER > 1000
  18.         #pragma once
  19. #endif
  20.  
  21. #include <CryScriptSystem/IScriptSystem.h>
  22. #include <CryScriptSystem/ScriptHelpers.h>
  23.  
  24. class CActionMapManager;
  25.  
  26. class CScriptBind_ActionMapManager :
  27.         public CScriptableBase
  28. {
  29. public:
  30.         CScriptBind_ActionMapManager(ISystem* pSystem, CActionMapManager* pActionMapManager);
  31.         virtual ~CScriptBind_ActionMapManager();
  32.  
  33.         void         Release() { delete this; };
  34.  
  35.         virtual void GetMemoryUsage(ICrySizer* pSizer) const
  36.         {
  37.                 pSizer->AddObject(this, sizeof(*this));
  38.         }
  39.  
  40.         //! <code>ActionMapManager.EnableActionFilter( name, enable )</code>
  41.         //!             <param name="name">Filter name.</param>
  42.         //!             <param name="enable">True to enable the filter, false otherwise.</param>
  43.         //! <description>Enables a filter for the actions.</description>
  44.         int EnableActionFilter(IFunctionHandler* pH, const char* name, bool enable);
  45.  
  46.         //! <code>ActionMapManager.EnableActionMap( name, enable )</code>
  47.         //!             <param name="name">Action map name.</param>
  48.         //!             <param name="enable">True to enable the filter, false otherwise.</param>
  49.         //! <description>Enables an action map.</description>
  50.         int EnableActionMap(IFunctionHandler* pH, const char* name, bool enable);
  51.  
  52.         //! <code>ActionMapManager.EnableActionMapManager( enable, resetStateOnDisable )</code>
  53.         //!             <param name="enable">Enables/Disables ActionMapManager.</param>
  54.         //!             <param name="resetStateOnDisable">Resets the different Action states when ActionMapManager gets disabled.</param>
  55.         //! <description>Enables/Disables ActionMapManager.</description>
  56.         int EnableActionMapManager(IFunctionHandler* pH, bool enable, bool resetStateOnDisable);
  57.  
  58.         //! <code>ActionMapManager.LoadFromXML( name )</code>
  59.         //!             <param name="name">XML file name.</param>
  60.         //! <description>Loads information from an XML file.</description>
  61.         int LoadFromXML(IFunctionHandler* pH, const char* name);
  62.  
  63.         //! <code>ActionMapManager.InitActionMaps( path )</code>
  64.         //!             <param name="path">XML file path.</param>
  65.         //! <description>Initializes the action maps and filters found in given file</description>
  66.         int InitActionMaps(IFunctionHandler* pH, const char* path);
  67.  
  68.         //! <code>ActionMapManager.SetDefaultActionEntity( id, updateAll )</code>
  69.         //!             <param name="id">EntityId of the new default action entity.</param>
  70.         //!             <param name="updateAll">Updates all existing action map assignments.</param>
  71.         //! <description>Sets the new default entity.</description>
  72.         int SetDefaultActionEntity(IFunctionHandler* pH, EntityId id, bool updateAll);
  73.  
  74.         //! <code>ActionMapManager.GetDefaultActionEntity()</code>
  75.         //! <description>Gets the currently set default action entity.</description>
  76.         int GetDefaultActionEntity(IFunctionHandler* pH);
  77.  
  78.         //! <code>ActionMapManager.LoadControllerLayoutFile( layoutName )</code>
  79.         //!             <param name="layoutName">layout name.</param>
  80.         //! <description>Loads the given controller layout into the action manager.</description>
  81.         int LoadControllerLayoutFile(IFunctionHandler* pH, const char* layoutName);
  82.  
  83.         //! <code>ActionMapManager.IsFilterEnabled( filterName )</code>
  84.         //!             <param name="filterName">filter name.</param>
  85.         //! <description>Checks if a filter is currently enabled.</description>
  86.         int IsFilterEnabled(IFunctionHandler* pH, const char* filterName);
  87.  
  88. private:
  89.         void RegisterGlobals();
  90.         void RegisterMethods();
  91.  
  92.         ISystem*           m_pSystem;
  93.         CActionMapManager* m_pManager;
  94. };
  95.  
  96. #endif //__SCRIPTBIND_ACTIONMAPMANAGER_H__
  97.  
downloadScriptBind_ActionMapManager.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