BVB Source Codes

CRYENGINE Show MannequinObject.h Source code

Return Download CRYENGINE: download MannequinObject.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #pragma once
  4.  
  5. #include <CryEntitySystem/IEntityComponent.h>
  6.  
  7. struct IAnimatedCharacter;
  8.  
  9. class CMannequinObject final : public IEntityComponent
  10. {
  11. private:
  12.  
  13.         class CProperties final : public IEntityPropertyGroup
  14.         {
  15.         public:
  16.  
  17.                 CProperties(CMannequinObject& owner);
  18.  
  19.                 string            modelFilePath;
  20.                 string            actionControllerFilePath;
  21.                 string            animationDatabaseFilePath;
  22.  
  23.                 CMannequinObject& ownerBackReference;
  24.  
  25.         private:
  26.  
  27.                 // IEntityPropertyGroup
  28.                 virtual const char* GetLabel() const override;
  29.                 virtual void        SerializeProperties(Serialization::IArchive& archive) override;
  30.                 // ~IEntityPropertyGroup
  31.         };
  32.  
  33. public:
  34.  
  35.         CRY_ENTITY_COMPONENT_INTERFACE_AND_CLASS(CMannequinObject, "MannequinObjectComponent", 0xB8BE725C60654EC1, 0xAFDB0BE2819FBEBB);
  36.  
  37.         CMannequinObject();
  38.  
  39. private:
  40.  
  41.         // IEntityComponent
  42.         virtual void                  Initialize() override;
  43.         virtual void                  OnShutDown() override;
  44.         virtual void                  ProcessEvent(SEntityEvent& event) override;
  45.         virtual uint64                GetEventMask() const override;
  46.         virtual IEntityPropertyGroup* GetPropertyGroup() override;
  47.         virtual void                  GetMemoryUsage(ICrySizer* s) const override;
  48.         // ~IEntityComponent
  49.  
  50.         void Reset();
  51.  
  52. private:
  53.  
  54.         CProperties         m_properties;
  55.         IAnimatedCharacter* m_pAnimatedCharacter;
  56. };
  57.  
downloadMannequinObject.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