BVB Source Codes

CRYENGINE Show AttachmentBase.h Source code

Return Download CRYENGINE: download AttachmentBase.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 "Skeleton.h"
  6.  
  7. class CAttachmentManager;
  8.  
  9. struct SAttachmentBase : public IAttachment
  10. {
  11.         SAttachmentBase()
  12.                 : m_AttFlags(0)
  13.                 , m_nSocketCRC32(0)
  14.                 , m_nRefCounter(0)
  15.                 , m_pIAttachmentObject(nullptr)
  16.                 , m_pAttachmentManager(nullptr)
  17.         {
  18.         }
  19.  
  20.         // these functions will queue commands in the attachment manager
  21.         // and they are exposed in the interface, since they are safe
  22.         // to call from the main thread at any time
  23.         virtual void AddBinding(IAttachmentObject* pModel, ISkin* pISkin = 0, uint32 nLoadingFlags = 0) override;
  24.         virtual void ClearBinding(uint32 nLoadingFlags = 0) override;
  25.         virtual void SwapBinding(IAttachment* pNewAttachment) override;
  26.  
  27.         // these are the actual implementations and will get overloaded by the actual classes
  28.         virtual uint32 Immediate_AddBinding(IAttachmentObject* pModel, ISkin* pISkin = 0, uint32 nLoadingFlags = 0) = 0;
  29.         virtual void   Immediate_ClearBinding(uint32 nLoadingFlags = 0) = 0;
  30.         virtual uint32 Immediate_SwapBinding(IAttachment* pNewAttachment) = 0;
  31.  
  32.         //shared members
  33.         uint32              m_AttFlags;
  34.         string              m_strSocketName;
  35.         uint32              m_nSocketCRC32;
  36.         int32               m_nRefCounter;
  37.         IAttachmentObject*  m_pIAttachmentObject;
  38.         CAttachmentManager* m_pAttachmentManager;
  39. };
  40.  
downloadAttachmentBase.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