BVB Source Codes

CRYENGINE Show CryAISystem.cpp Source code

Return Download CRYENGINE: download CryAISystem.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // CryAISystem.cpp : Defines the entry point for the DLL application.
  4. //
  5.  
  6. #include "StdAfx.h"
  7. #include "CryAISystem.h"
  8. #include <CryCore/Platform/platform_impl.inl>
  9. #include "CAISystem.h"
  10. #include "AILog.h"
  11. #include <CrySystem/ISystem.h>
  12.  
  13. #include <CrySystem/IEngineModule.h>
  14. #include <CryExtension/ICryFactory.h>
  15. #include <CryExtension/ClassWeaver.h>
  16.  
  17. CAISystem* g_pAISystem;
  18.  
  19. /*
  20.    //////////////////////////////////////////////////////////////////////////
  21.    // Pointer to Global ISystem.
  22.    static ISystem* gISystem = 0;
  23.    ISystem* GetISystem()
  24.    {
  25.    return gISystem;
  26.    }
  27.  */
  28.  
  29. //////////////////////////////////////////////////////////////////////////
  30. class CEngineModule_CryAISystem : public IEngineModule
  31. {
  32.         CRYINTERFACE_SIMPLE(IEngineModule)
  33.         CRYGENERATE_SINGLETONCLASS(CEngineModule_CryAISystem, "EngineModule_CryAISystem", 0x6b8e79a784004f44, 0x97db7614428ad251)
  34.  
  35.         virtual ~CEngineModule_CryAISystem() {}
  36.  
  37.         //////////////////////////////////////////////////////////////////////////
  38.         virtual const char* GetName() override { return "CryAISystem"; };
  39.         virtual const char* GetCategory() override { return "CryEngine"; };
  40.  
  41.         //////////////////////////////////////////////////////////////////////////
  42.         virtual bool Initialize(SSystemGlobalEnvironment& env, const SSystemInitParams& initParams) override
  43.         {
  44.                 ISystem* pSystem = env.pSystem;
  45.  
  46.                 AIInitLog(pSystem);
  47.  
  48.                 g_pAISystem = new CAISystem(pSystem);
  49.                 env.pAISystem = g_pAISystem;
  50.  
  51.                 return true;
  52.         }
  53. };
  54.  
  55. CRYREGISTER_SINGLETON_CLASS(CEngineModule_CryAISystem)
  56.  
  57. //////////////////////////////////////////////////////////////////////////
  58. #include <CryCore/CrtDebugStats.h>
  59.  
  60. #ifndef _LIB
  61.         #include <CryCore/Common_TypeInfo.h>
  62. #endif
  63.  
  64. #include <CryCore/TypeInfo_impl.h>
  65. #include "AutoTypeStructs_info.h"
  66.  
downloadCryAISystem.cpp 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