BVB Source Codes

CRYENGINE Show FlashUIActionEvents.h Source code

Return Download CRYENGINE: download FlashUIActionEvents.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:   FlashUIActionEvents.h
  5. //  Version:     v1.00
  6. //  Created:     10/9/2010 by Paul Reindell.
  7. //  Description:
  8. // -------------------------------------------------------------------------
  9. //  History:
  10. //
  11. ////////////////////////////////////////////////////////////////////////////
  12. #ifndef __FlashUIActionEvents_H__
  13. #define __FlashUIActionEvents_H__
  14.  
  15. #include <CrySystem/Scaleform/IFlashUI.h>
  16. #include <ILevelSystem.h>
  17.  
  18. class CFlashUIActionEvents
  19. {
  20. public:
  21.         CFlashUIActionEvents();
  22.         ~CFlashUIActionEvents();
  23.  
  24.         // ui events
  25.         void OnSystemStart();
  26.         void OnSystemShutdown();
  27.         void OnLoadingStart(ILevelInfo* pLevel);
  28.         void OnLoadingProgress(ILevelInfo* pLevel, int progressAmount);
  29.         void OnLoadingComplete();
  30.         void OnLoadingError(ILevelInfo* pLevel, const char* error);
  31.         void OnGameplayStarted();
  32.         void OnGameplayEnded();
  33.         void OnLevelUnload();
  34.         void OnUnloadComplete();
  35.         void OnConnect(const char* server);
  36.         void OnDisconnect(const char* error);
  37.         void OnGameplayPaused();
  38.         void OnGameplayResumed();
  39.         void OnReload();
  40.  
  41.         // ui functions
  42.         void OnUnloadAllElements(const SUIArguments& elements);
  43.  
  44. private:
  45.         enum EUIEvent
  46.         {
  47.                 eUIE_OnSystemStarted,
  48.                 eUIE_OnSystemShutdown,
  49.  
  50.                 eUIE_OnLoadingStart,
  51.                 eUIE_OnLoadingProgress,
  52.                 eUIE_OnLoadingComplete,
  53.                 eUIE_OnLoadingError,
  54.  
  55.                 eUIE_OnGameplayStarted,
  56.                 eUIE_OnGameplayEnded,
  57.  
  58.                 eUIE_OnUnloadStart,
  59.                 eUIE_OnUnloadComplete,
  60.  
  61.                 eUIE_OnConnect,
  62.                 eUIE_OnDisconnect,
  63.  
  64.                 eUIE_OnGamePause,
  65.                 eUIE_OnGameResume,
  66.  
  67.                 eUIE_OnReload,
  68.         };
  69.  
  70.         SUIEventReceiverDispatcher<CFlashUIActionEvents> m_eventDispatcher;
  71.         SUIEventSenderDispatcher<EUIEvent>               m_eventSender;
  72.  
  73.         IUIEventSystem* m_pUIEvents;
  74.         IUIEventSystem* m_pUIFunctions;
  75.  
  76.         IGameFramework* m_pGameFramework;
  77.         ILevelSystem*   m_pLevelSystem;
  78. };
  79.  
  80. #endif // #ifndef __FlashUIActionEvents_H__
  81.  
downloadFlashUIActionEvents.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