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;
|
|
|
|
|
2023-11-10 23:16:36 +00:00
|
|
|
class SObjectTag {
|
|
|
|
public:
|
2022-10-06 09:27:07 +00:00
|
|
|
SObjectTag() {}
|
2023-11-10 23:16:36 +00:00
|
|
|
SObjectTag(const FourCC type, const CAssetId id) : mType(type), mId(id) {}
|
|
|
|
SObjectTag(const SObjectTag& other) : mType(other.mType), mId(other.mId) {}
|
2022-10-06 09:27:07 +00:00
|
|
|
|
2023-11-10 23:16:36 +00:00
|
|
|
const CAssetId GetId() const { return mId; }
|
|
|
|
const FourCC GetType() const { return mType; }
|
2022-10-06 09:27:07 +00:00
|
|
|
static const char* Type2Text(FourCC type);
|
2023-11-10 23:16:36 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
FourCC mType;
|
|
|
|
CAssetId mId;
|
2022-10-06 09:27:07 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _SOBJECTTAG
|