You.i Engine
YiAssetBif.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_ASSET_BIF_H_
3 #define _YI_ASSET_BIF_H_
4 
5 #include "asset/YiAsset.h"
6 #include "utility/YiRtti.h"
7 #include "asset/YiBifParser.h"
8 
21 class CYIAssetBif : public CYIAsset
22 {
23 public:
24  CYIAssetBif();
25  virtual ~CYIAssetBif();
26 
32  bool GetImageDataAtIndex(uint32_t uIndex, std::vector<uint8_t> *pImageData);
33 
38  uint32_t GetImageIndexAtTime(uint32_t uTime);
39 
44  const std::shared_ptr<CYIBif> &GetBif();
45 
49  void SetBif(const std::shared_ptr<CYIBif> &pBifParser);
50 
51 protected:
52  virtual void OnUnload() override;
53 
54 private:
55  std::shared_ptr<CYIBif> m_pBifParser;
56 
58 };
59 
60 #endif // _YI_ASSET_BIF_H_
61 
62 
uint32_t GetImageIndexAtTime(uint32_t uTime)
void SetBif(const std::shared_ptr< CYIBif > &pBifParser)
Asset representing BIF files.
Definition: YiAssetBif.h:21
const std::shared_ptr< CYIBif > & GetBif()
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
virtual void OnUnload() override
bool GetImageDataAtIndex(uint32_t uIndex, std::vector< uint8_t > *pImageData)
Base class for any asset. An asset provides functions for dynamically loading and unloading itself an...
Definition: YiAsset.h:33
virtual ~CYIAssetBif()
This file contains the classes and macros used to implement RTTI in You.i Engine. ...