Merge branch 'master' of http://www.hyzgame.com:3000/hyzboy/CMExamples
This commit is contained in:
@@ -89,4 +89,33 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#define HGL_RUNTIME_ASSET_CLASS(RA_ID_TYPE,_RA_CLASS)
|
||||
|
||||
#define HGL_RUNTIME_ASSET_DECLARATION(RA_ID_TYPE,RA_CLASS) RuntimeAssetManager<RA_ID_TYPE,RA_CLASS> RuntimeAsset<RA_ID_TYPE,RA_CLASS>::RAM;
|
||||
|
||||
/**
|
||||
* Example:
|
||||
*
|
||||
* MyRuntimeAsset.h
|
||||
*
|
||||
* using MyAssetID=uint;
|
||||
*
|
||||
* struct MyRuntimeAsset:public RuntimeAsset<MyAssetID,MyRuntimeAsset>
|
||||
* {
|
||||
* public:
|
||||
*
|
||||
* using RuntimeAsset::RuntimeAsset;
|
||||
* };
|
||||
*
|
||||
* MyRuntimeAsset.cpp
|
||||
*
|
||||
* #include"MyRuntimeAsset.h"
|
||||
*
|
||||
* HGL_RUNTIME_ASSET_DECLARATION(MyAssetID,MyRuntimeAsset);
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user