BVB Source Codes

CRYENGINE Show ScriptBind_Network.h Source code

Return Download CRYENGINE: download ScriptBind_Network.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: Binding of network functions into script
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 24:11:2004   11:30 : Created by Craig Tiller
  12.  
  13. *************************************************************************/
  14. #ifndef __SCRIPTBIND_NETWORK_H__
  15. #define __SCRIPTBIND_NETWORK_H__
  16.  
  17. #pragma once
  18.  
  19. #include <CryScriptSystem/IScriptSystem.h>
  20. #include <CryScriptSystem/ScriptHelpers.h>
  21.  
  22. class CGameContext;
  23. class CCryAction;
  24.  
  25. class CScriptBind_Network :
  26.         public CScriptableBase
  27. {
  28. public:
  29.         CScriptBind_Network(ISystem* pSystem, CCryAction* pFW);
  30.         virtual ~CScriptBind_Network();
  31.  
  32.         void Release() { delete this; };
  33.  
  34.         //! <code>Network.Expose()</code>
  35.         int Expose(IFunctionHandler* pFH);
  36.  
  37.         //! <code>Network.DelegateAuthority(ent, channel)</code>
  38.         //!             <param name="ent">Entity identifier.</param>
  39.         //!             <param name="channel">Network channel.</param>
  40.         //! <description>Delegate authority for an object to some client.</description>
  41.         int          DelegateAuthority(IFunctionHandler* pFH, ScriptHandle ent, int channel);
  42.  
  43.         virtual void GetMemoryUsage(ICrySizer* pSizer) const
  44.         {
  45.                 pSizer->AddObject(this, sizeof(*this));
  46.         }
  47. private:
  48.         void RegisterGlobals();
  49.         void RegisterMethods();
  50.  
  51.         ISystem*    m_pSystem;
  52.         CCryAction* m_pFW;
  53. };
  54.  
  55. #endif
  56.  
downloadScriptBind_Network.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