boolean is<thing>valid chjecks for assets. tests wether it's non-empty and reporting zero flaws

This commit is contained in:
AzaezelX 2021-09-28 18:16:14 -05:00
parent 96891e5673
commit 776741770d
5 changed files with 16 additions and 9 deletions

View file

@ -259,7 +259,8 @@ public: \
SimObjectPtr<Material> get##name##Resource() \
{\
return m##name;\
}
}\
bool is##name##Valid() { (get##name() != StringTable->EmptyString() && m##name##Asset->getStatus() == AssetBase::Ok) ? true : false; }
#define DECLARE_MATERIALASSET_SETGET(className, name)\
static bool _set##name##Data(void* obj, const char* index, const char* data)\