2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _SOBJECTTAG
|
|
|
|
#define _SOBJECTTAG
|
2022-10-06 09:27:07 +00:00
|
|
|
|
2022-10-14 15:12:16 +00:00
|
|
|
#include "types.h"
|
|
|
|
|
2022-10-06 09:27:07 +00:00
|
|
|
#define kInvalidAssetId 0xFFFFFFFFu
|
|
|
|
|
|
|
|
typedef uint CAssetId;
|
|
|
|
typedef uint FourCC;
|
|
|
|
|
|
|
|
struct SObjectTag {
|
|
|
|
FourCC type;
|
|
|
|
CAssetId id;
|
|
|
|
|
|
|
|
SObjectTag() {}
|
|
|
|
SObjectTag(FourCC type, CAssetId id) : type(type), id(id) {}
|
|
|
|
SObjectTag(const SObjectTag& other) : type(other.type), id(other.id) {}
|
|
|
|
|
|
|
|
static const char* Type2Text(FourCC type);
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _SOBJECTTAG
|