prime/include/Kyoto/SObjectTag.hpp
Phillip Stephens 9843c3b263 Add missing getters in SObjectTag and migrate to them
Former-commit-id: 80edcb3749d3f5733e0040d320a6ed6ac5425790
2023-11-10 15:16:36 -08:00

27 lines
552 B
C++

#ifndef _SOBJECTTAG
#define _SOBJECTTAG
#include "types.h"
#define kInvalidAssetId 0xFFFFFFFFu
typedef uint CAssetId;
typedef uint FourCC;
class SObjectTag {
public:
SObjectTag() {}
SObjectTag(const FourCC type, const CAssetId id) : mType(type), mId(id) {}
SObjectTag(const SObjectTag& other) : mType(other.mType), mId(other.mId) {}
const CAssetId GetId() const { return mId; }
const FourCC GetType() const { return mType; }
static const char* Type2Text(FourCC type);
public:
FourCC mType;
CAssetId mId;
};
#endif // _SOBJECTTAG