OROCHI
 
Loading...
Searching...
No Matches
GxResMotionIntegrate.h
Go to the documentation of this file.
1//===========================================================================
11//===========================================================================
12#pragma once
13
14#if GX_DEVELOP
15
16GX_MOTION_NAMESPACE_BEGIN()
17//===========================================================================
19//===========================================================================
20class GxResMotionIntegrate : public GxResBase
21{
22 //-----------------------------------------------------------
24 //-----------------------------------------------------------
26public:
27 // Rtti定義
28 GX_RTTI_RESOURCE_NAME(GxResMotionIntegrate, GxResBase, "モーション統合リソース");
29 // ClassBaseReference継承クラス用禁止宣言
30 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxResMotionIntegrate)
31
32
33 //-----------------------------------------------------------
35 //-----------------------------------------------------------
37
39 GxResMotionIntegrate(void){}
40
42 //-----------------------------------------------------------
44 //-----------------------------------------------------------
46
51 GX_FORCE_INLINE b32 load(GxStream& stream, u32 /*dataSize*/) { return loadXml(stream); }
52
56 GX_FORCE_INLINE b32 save(GxStream& stream) { return saveXml(stream, GX_RTTI); }
57
59};
60
61//===========================================================================
63//===========================================================================
64class GxResMotionIntegrateXml : public GxResMotionIntegrate
65{
66 //---------------------------------------------------------------
68 //---------------------------------------------------------------
70public:
71 // RTTI宣言
72 GX_RTTI_RESOURCE(GxResMotionIntegrateXml, GxResMotionIntegrate);
73 // 禁止処理
74 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxResMotionIntegrateXml)
75
76
77 //---------------------------------------------------------------
79 //---------------------------------------------------------------
81
83 GxResMotionIntegrateXml(void);
84
86 //---------------------------------------------------------------
88 //---------------------------------------------------------------
90
91#if GX_EDITOR
93 void getToolRtti(GxArray& arrayTool) const override;
94#endif //GX_EDITOR
95
97 constexpr GxResModel* getResModel(void) const { return _pResModel; }
99 constexpr void setResModel(GxResModel* pResModel) { _pResModel = pResModel; }
101 constexpr GxResMotionPackage* getResMotionPackage(void) const { return _pResMotionPackage; }
103 constexpr void setResMotionPackage(GxResMotionPackage* pResMotionPackage) { _pResMotionPackage = pResMotionPackage; }
105 constexpr GxResMotionSequencePackageXml* getResMotionSequencePackageXml(void) const { return _pResMotionSequencePackageXml; }
107 constexpr void setResMotionSequencePackageXml(GxResMotionSequencePackageXml* pResMotionSequencePackageXml) { _pResMotionSequencePackageXml = pResMotionSequencePackageXml; }
108
110 //---------------------------------------------------------------
112 //---------------------------------------------------------------
114protected:
116 b32 load(GxStream& in, u32 dataSize);
118 b32 save(GxStream& out);
119
121 //-----------------------------------------------------------
123 //-----------------------------------------------------------
125private:
126 GxResModel* _pResModel;
127 GxResMotionPackage* _pResMotionPackage;
128 GxResMotionSequencePackageXml* _pResMotionSequencePackageXml;
130};
131
132GX_MOTION_NAMESPACE_END()
133
134#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
#define GX_RTTI_RESOURCE(__THIS__, __BASE__)
リソースクラス型情報宣言
Definition GxRttiResource.h:102
配列クラス
Definition GxArray.h:18
リソース基底クラス
Definition GxResBase.h:23
モデルリソースクラス
Definition GxResModel.h:20
モーションパッケージリソース
Definition GxResMotionPackage.h:20
ストリーム基礎クラス
Definition GxStream.h:20
32bitブーリアン
Definition GxDefine.h:173