BVB Source Codes

CRYENGINE Show ScriptBind_VehicleSystem.h Source code

Return Download CRYENGINE: download ScriptBind_VehicleSystem.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 Binding for the Vehicle System
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 26:04:2005   : Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __SCRIPTBIND_VEHICLESYSTEM_H__
  15. #define __SCRIPTBIND_VEHICLESYSTEM_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. struct IVehicleSystem;
  25. struct IGameFramework;
  26. class CVehicleSystem;
  27.  
  28. class CScriptBind_VehicleSystem :
  29.         public CScriptableBase
  30. {
  31. public:
  32.         CScriptBind_VehicleSystem(ISystem* pSystem, CVehicleSystem* vehicleSystem);
  33.         virtual ~CScriptBind_VehicleSystem();
  34.  
  35.         void Release() { delete this; };
  36.  
  37.         //! <code>VehicleSystem.GetVehicleImplementations()</code>
  38.         //! <description>Get a table of all implemented vehicles.</description>
  39.         int GetVehicleImplementations(IFunctionHandler* pH);
  40.  
  41.         //! <code>VehicleSystem.GetOptionalScript(vehicleName)</code>
  42.         //! <description>Get an (optional) script for the named vehicle.</description>
  43.         int GetOptionalScript(IFunctionHandler* pH, char* vehicleName);
  44.  
  45.         //! <code>VehicleSystem.SetTpvDistance(distance)</code>
  46.         //! <description>Distance of camera in third person view.</description>
  47.         int SetTpvDistance(IFunctionHandler* pH, float distance);
  48.  
  49.         //! <code>VehicleSystem.SetTpvHeight(height)</code>
  50.         //! <description>Height of camera in third person view.</description>
  51.         int SetTpvHeight(IFunctionHandler* pH, float height);
  52.  
  53.         //! <code>VehicleSystem.ReloadSystem()</code>
  54.         //! <description>Reloads the vehicle system with default values.</description>
  55.         int          ReloadSystem(IFunctionHandler* pH);
  56.  
  57.         virtual void GetMemoryUsage(ICrySizer* pSizer) const
  58.         {
  59.                 pSizer->AddObject(this, sizeof(*this));
  60.         }
  61.  
  62. private:
  63.  
  64.         void RegisterGlobals();
  65.         void RegisterMethods();
  66.  
  67.         CVehicleSystem* m_pVehicleSystem;
  68. };
  69.  
  70. #endif //__SCRIPTBIND_VEHICLESYSTEM_H__
  71.  
downloadScriptBind_VehicleSystem.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